From b327677b4e405ccc71f6292fad2ff08abe2f7c99 Mon Sep 17 00:00:00 2001 From: hugetoad Date: Mon, 8 May 2006 17:17:58 +0000 Subject: Minor changes. git-svn-id: svn://svn.zabbix.com/trunk@2822 97f52cf1-0a1b-0410-bd0e-c28be96e8082 --- frontends/php/graphs.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'frontends/php/graphs.php') diff --git a/frontends/php/graphs.php b/frontends/php/graphs.php index f281ba7c..133ddb9a 100644 --- a/frontends/php/graphs.php +++ b/frontends/php/graphs.php @@ -238,9 +238,9 @@ "graph.php?graphid=".$row["graphid"]); } else { $real_hosts = get_realhosts_by_graphid($row["templateid"]); - if(DBnum_rows($real_hosts) == 1) + $real_host = DBfetch($real_hosts); + if($real_host) { - $real_host = DBfetch($real_hosts); $name = array( new CLink($real_host["host"],"graphs.php?". "hostid=".$real_host["hostid"], -- cgit