summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/graphs.inc.php
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-02-23 16:06:28 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-02-23 16:06:28 +0000
commitd3fa1cb7b782c6f36434eec7ae3a5d848b4602cf (patch)
treeee658ad70006babca663891648e87614d2592567 /frontends/php/include/graphs.inc.php
parentffafca015474728b74f6868898b30989c112a88a (diff)
downloadzabbix-d3fa1cb7b782c6f36434eec7ae3a5d848b4602cf.tar.gz
zabbix-d3fa1cb7b782c6f36434eec7ae3a5d848b4602cf.tar.xz
zabbix-d3fa1cb7b782c6f36434eec7ae3a5d848b4602cf.zip
Minor fixes in frontend.
git-svn-id: svn://svn.zabbix.com/trunk@2683 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/graphs.inc.php')
-rw-r--r--frontends/php/include/graphs.inc.php6
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;