diff options
| author | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2002-11-10 09:16:25 +0000 |
|---|---|---|
| committer | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2002-11-10 09:16:25 +0000 |
| commit | 64ac1f99f5cfc6a30d5c00e82a73db031dcf5b0e (patch) | |
| tree | 6becdc90306b3600479491eb6667aeb2904f6ecc /frontends/php/tr_status.php | |
| parent | ea43b5989622a03c809ebd2aca8b9ea4e2f5a763 (diff) | |
Misc changes to PHP frontend.
git-svn-id: svn://svn.zabbix.com/trunk@565 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/tr_status.php')
| -rw-r--r-- | frontends/php/tr_status.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/frontends/php/tr_status.php b/frontends/php/tr_status.php index 3177f4b7..a0e8a3b3 100644 --- a/frontends/php/tr_status.php +++ b/frontends/php/tr_status.php @@ -244,11 +244,11 @@ if($onlytrue=='true') { - $sql="select t.priority,count(*) from triggers t,hosts h,items i,functions f where t.value=1 and t.status=0 and f.itemid=i.itemid and h.hostid=i.hostid and h.status in (0,2) and t.triggerid=f.triggerid and t.description $select_cond and i.status in (0,2) $cond group by 1"; + $sql="select t.priority,count(*) from triggers t,hosts h,items i,functions f where t.value=1 and t.status=0 and f.itemid=i.itemid and h.hostid=i.hostid and h.status in (0,2) and t.triggerid=f.triggerid and t.description $select_cond and i.status=0 $cond group by 1"; } else { - $sql="select t.priority,count(*) from triggers t,hosts h,items i,functions f where f.itemid=i.itemid and h.hostid=i.hostid and t.triggerid=f.triggerid and t.status=0 and h.status in (0,2) and t.description $select_cond and i.status in (0,2) $cond group by 1"; + $sql="select t.priority,count(*) from triggers t,hosts h,items i,functions f where f.itemid=i.itemid and h.hostid=i.hostid and t.triggerid=f.triggerid and t.status=0 and h.status in (0,2) and t.description $select_cond and i.status=0 $cond group by 1"; } $result=DBselect($sql); $p0=$p1=$p2=$p3=$p4=$p5=0; |
