summaryrefslogtreecommitdiffstats
path: root/frontends/php/tr_status.php
diff options
context:
space:
mode:
authorartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-06-18 12:32:02 +0000
committerartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-06-18 12:32:02 +0000
commit4f1f420a91e557c2ab4a7ff9605fba260931bbdc (patch)
tree48ff179492d1d1ae1d93061ec618392d281fef3a /frontends/php/tr_status.php
parent01e94d67317be183b74fa97bd3d15ee99ab27d69 (diff)
downloadzabbix-4f1f420a91e557c2ab4a7ff9605fba260931bbdc.tar.gz
zabbix-4f1f420a91e557c2ab4a7ff9605fba260931bbdc.tar.xz
zabbix-4f1f420a91e557c2ab4a7ff9605fba260931bbdc.zip
- [DEV-171] improvements to escalation form (Artem)
- [DEV-137] small fixes (Artem) git-svn-id: svn://svn.zabbix.com/trunk@5778 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/tr_status.php')
-rw-r--r--frontends/php/tr_status.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/frontends/php/tr_status.php b/frontends/php/tr_status.php
index b4c0ca4a..68f4f2f5 100644
--- a/frontends/php/tr_status.php
+++ b/frontends/php/tr_status.php
@@ -173,7 +173,7 @@ include_once "include/page_header.php";
$scripts_by_hosts = get_accessible_scripts_by_hosts(explode(',',$available_hosts));
- $result=DBselect('SELECT DISTINCT g.groupid,g.name '.
+ $sql = 'SELECT DISTINCT g.groupid,g.name '.
' FROM groups g, hosts_groups hg, hosts h, items i '.
' WHERE g.groupid in ('.$available_groups.') '.
' AND hg.groupid=g.groupid '.
@@ -181,7 +181,9 @@ include_once "include/page_header.php";
' AND h.hostid=i.hostid '.
' AND hg.hostid=h.hostid '.
' AND i.status='.ITEM_STATUS_ACTIVE.
- ' ORDER BY g.name');
+ ' ORDER BY g.name';
+
+ $result=DBselect($sql);
while($row=DBfetch($result)){
$cmbGroup->AddItem(