diff options
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) |
