diff options
author | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2006-05-08 17:17:58 +0000 |
---|---|---|
committer | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2006-05-08 17:17:58 +0000 |
commit | b327677b4e405ccc71f6292fad2ff08abe2f7c99 (patch) | |
tree | bd14a7f6a9e0cd6447d56759f4050890235962a4 /frontends/php/graphs.php | |
parent | 579448298e554487e82ec07ea2f5b2a9cc6adfd0 (diff) | |
download | zabbix-b327677b4e405ccc71f6292fad2ff08abe2f7c99.tar.gz zabbix-b327677b4e405ccc71f6292fad2ff08abe2f7c99.tar.xz zabbix-b327677b4e405ccc71f6292fad2ff08abe2f7c99.zip |
Minor changes.
git-svn-id: svn://svn.zabbix.com/trunk@2822 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/graphs.php')
-rw-r--r-- | frontends/php/graphs.php | 4 |
1 files changed, 2 insertions, 2 deletions
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"], |