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/chart2.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'frontends/php/chart2.php') diff --git a/frontends/php/chart2.php b/frontends/php/chart2.php index 1a4342c2..36574112 100644 --- a/frontends/php/chart2.php +++ b/frontends/php/chart2.php @@ -45,9 +45,9 @@ $db_hosts = get_hosts_by_graphid($_REQUEST["graphid"]); $name=$row["name"]; - if(DBnum_rows($db_hosts)==1) + $db_host = DBfetch($db_hosts); + if($db_host) { - $db_host = DBfetch($db_hosts); $name = $db_host["host"].":".$name; } if(isset($_REQUEST["width"])&&$_REQUEST["width"]>0) -- cgit