summaryrefslogtreecommitdiffstats
path: root/frontends/php/items.php
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2005-06-24 17:52:01 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2005-06-24 17:52:01 +0000
commitbf38a239eb16594b4f66e53894fad04e085a17a1 (patch)
treef2a1739cc90b5c53274d7cc70f677418bf140e35 /frontends/php/items.php
parentbd4076230102aed5d9d6028544483537079283c5 (diff)
downloadzabbix-bf38a239eb16594b4f66e53894fad04e085a17a1.tar.gz
zabbix-bf38a239eb16594b4f66e53894fad04e085a17a1.tar.xz
zabbix-bf38a239eb16594b4f66e53894fad04e085a17a1.zip
- do not show deleted hosts/items and triggers (Alexei)
git-svn-id: svn://svn.zabbix.com/trunk@1892 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/items.php')
-rw-r--r--frontends/php/items.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/frontends/php/items.php b/frontends/php/items.php
index c622d845..341f7466 100644
--- a/frontends/php/items.php
+++ b/frontends/php/items.php
@@ -160,7 +160,7 @@
while($row=DBfetch($result))
{
// Check if at least one host with read permission exists for this group
- $result2=DBselect("select h.hostid,h.host from hosts h,hosts_groups hg where hg.groupid=".$row["groupid"]." and hg.hostid=h.hostid group by h.hostid,h.host order by h.host");
+ $result2=DBselect("select h.hostid,h.host from hosts h,hosts_groups hg where hg.groupid=".$row["groupid"]." and hg.hostid=h.hostid and h.status<>".HOST_STATUS_DELETED." group by h.hostid,h.host order by h.host");
$cnt=0;
while($row2=DBfetch($result2))
{
@@ -183,11 +183,11 @@
if(isset($_GET["groupid"]))
{
- $sql="select h.hostid,h.host from hosts h,hosts_groups hg where hg.groupid=".$_GET["groupid"]." and hg.hostid=h.hostid group by h.hostid,h.host order by h.host";
+ $sql="select h.hostid,h.host from hosts h,hosts_groups hg where hg.groupid=".$_GET["groupid"]." and hg.hostid=h.hostid and h.status<>".HOST_STATUS_DELETED." group by h.hostid,h.host order by h.host";
}
else
{
- $sql="select h.hostid,h.host from hosts h group by h.hostid,h.host order by h.host";
+ $sql="select h.hostid,h.host from hosts h where h.status<>".HOST_STATUS_DELETED." group by h.hostid,h.host order by h.host";
}
$result=DBselect($sql);