From d3fa1cb7b782c6f36434eec7ae3a5d848b4602cf Mon Sep 17 00:00:00 2001 From: hugetoad Date: Thu, 23 Feb 2006 16:06:28 +0000 Subject: Minor fixes in frontend. git-svn-id: svn://svn.zabbix.com/trunk@2683 97f52cf1-0a1b-0410-bd0e-c28be96e8082 --- frontends/php/include/graphs.inc.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'frontends/php/include/graphs.inc.php') 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; -- cgit