summaryrefslogtreecommitdiffstats
path: root/frontends/php/latest.php
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-02-08 12:30:46 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-02-08 12:30:46 +0000
commitc9ac957849a908ec53b9c410916fb8f690c4c576 (patch)
treec6ab089a86ef8a19214ba14fc43fb6d84c676fba /frontends/php/latest.php
parentbabc67a5c091abfb0921b25c3290fafe3d97489f (diff)
downloadzabbix-c9ac957849a908ec53b9c410916fb8f690c4c576.tar.gz
zabbix-c9ac957849a908ec53b9c410916fb8f690c4c576.tar.xz
zabbix-c9ac957849a908ec53b9c410916fb8f690c4c576.zip
zbx_ads() replaced by zabx_dbstr()
git-svn-id: svn://svn.zabbix.com/trunk@2629 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/latest.php')
-rw-r--r--frontends/php/latest.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/frontends/php/latest.php b/frontends/php/latest.php
index 170fd62c..8b2e577c 100644
--- a/frontends/php/latest.php
+++ b/frontends/php/latest.php
@@ -189,7 +189,7 @@
$col=0;
if(isset($_REQUEST["select"]))
- $sql="select h.host,i.itemid,i.description,i.lastvalue,i.prevvalue,i.lastclock,i.status,h.hostid,i.value_type,i.units,i.multiplier,i.key_ from items i,hosts h where h.hostid=i.hostid and h.status=".HOST_STATUS_MONITORED." and i.status=0 and i.description like '%".zbx_ads($_REQUEST["select"])."%' order by i.description";
+ $sql="select h.host,i.itemid,i.description,i.lastvalue,i.prevvalue,i.lastclock,i.status,h.hostid,i.value_type,i.units,i.multiplier,i.key_ from items i,hosts h where h.hostid=i.hostid and h.status=".HOST_STATUS_MONITORED." and i.status=0 and i.description like ".zbx_dbstr("%",$_REQUEST["select"]."%")." order by i.description";
else
$sql="select h.host,i.itemid,i.description,i.lastvalue,i.prevvalue,i.lastclock,i.status,h.hostid,i.value_type,i.units,i.multiplier,i.key_ from items i,hosts h where h.hostid=i.hostid and h.status=".HOST_STATUS_MONITORED." and i.status=0 and h.hostid=".$_REQUEST["hostid"]." order by i.description";
$result=DBselect($sql);