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/chart2.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/chart2.php')
| -rw-r--r-- | frontends/php/chart2.php | 4 |
1 files changed, 2 insertions, 2 deletions
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) |
