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 a27402ae..6775cdd0 100644 --- a/frontends/php/include/graphs.inc.php +++ b/frontends/php/include/graphs.inc.php @@ -223,7 +223,7 @@ break; } $db_items = DBselect("select itemid from items". - " where key_=".$item["key_"]. + " where key_=".zbx_dbstr($item["key_"]). " and hostid=".$chd_host["hostid"]); if(DBnum_rows($db_items)==0) { @@ -248,7 +248,7 @@ $chd_hosts = get_hosts_by_graphid($child["graphid"]); $chd_host = DBfetch($chd_hosts); $db_items = DBselect("select itemid from items". - " where key_=".$item["key_"]. + " where key_=".zbx_dbstr($item["key_"]). " and hostid=".$chd_host["hostid"]); if(DBnum_rows($db_items)==0) { @@ -291,7 +291,7 @@ $chd_hosts = get_hosts_by_graphid($child["graphid"]); $chd_host = DBfetch($chd_hosts); $db_items = DBselect("select itemid from items". - " where key_=".$item["key_"]. + " where key_=".zbx_dbstr($item["key_"]). " and hostid=".$chd_host["hostid"]); if(DBnum_rows($db_items)==0) return FALSE; |
