diff options
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"], |
