summaryrefslogtreecommitdiffstats
path: root/frontends/php/tr_status.php
diff options
context:
space:
mode:
authorosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-05-22 09:48:19 +0000
committerosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-05-22 09:48:19 +0000
commit6fe8d2457fa96e4eff0f67379b7def24c8d47664 (patch)
treeabbc80d8f0abdee02cb270ab450fa91214f8a864 /frontends/php/tr_status.php
parent0fe7cbe5d251a09ff32a32ea0ce2792b9884bffe (diff)
- fixed authorisation (Eugene)
git-svn-id: svn://svn.zabbix.com/trunk@2870 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/tr_status.php')
-rw-r--r--frontends/php/tr_status.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/frontends/php/tr_status.php b/frontends/php/tr_status.php
index b5712710..756ff87a 100644
--- a/frontends/php/tr_status.php
+++ b/frontends/php/tr_status.php
@@ -335,14 +335,14 @@
$sql="select t.priority,count(*) as cnt from triggers t,hosts h,items i,functions f".$groupname.
" where t.value=1 and t.status=0 and f.itemid=i.itemid and h.hostid=i.hostid".
" and h.status=".HOST_STATUS_MONITORED." and i.status=".ITEM_STATUS_ACTIVE.
- " and t.triggerid=f.triggerid and t.description $select_cond $cond $groupcond group by 1";
+ " and t.triggerid=f.triggerid and t.description $select_cond $cond $groupcond group by t.priority";
}
else
{
$sql="select t.priority,count(*) as cnt from triggers t,hosts h,items i,functions f".$groupname.
" where f.itemid=i.itemid and h.hostid=i.hostid and t.triggerid=f.triggerid and t.status=0".
" and h.status=".HOST_STATUS_MONITORED." and i.status=".ITEM_STATUS_ACTIVE.
- " and t.description $select_cond $cond $groupcond group by 1";
+ " and t.description $select_cond $cond $groupcond group by t.priority";
}
$result=DBselect($sql);
$p0=$p1=$p2=$p3=$p4=$p5=0;