diff options
Diffstat (limited to 'frontends/php/include/graphs.inc.php')
| -rw-r--r-- | frontends/php/include/graphs.inc.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/frontends/php/include/graphs.inc.php b/frontends/php/include/graphs.inc.php index 72700800..55cd9665 100644 --- a/frontends/php/include/graphs.inc.php +++ b/frontends/php/include/graphs.inc.php @@ -424,13 +424,13 @@ if($templateid != null) { - $tmp_graph = get_graph_by_graphid($db_graph["templateid"]); + $tmp_host = DBfetch(get_hosts_by_graphid($db_graph["templateid"])); if(is_array($templateid)) { - if(!isset($templateid[$tmp_graph["hostid"]])) + if(!isset($templateid[$tmp_host["hostid"]])) continue; } - elseif($tmp_graph["hostid"] != $templateid) + elseif($tmp_host["hostid"] != $templateid) continue; } |
