summaryrefslogtreecommitdiffstats
path: root/frontends/php/latest.php
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-05-23 12:41:07 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-05-23 12:41:07 +0000
commit81dfe4b7f787e20eb47a0417007dcb453c6f8381 (patch)
tree488fbb30b8f86c0b69c92390846701894819caf1 /frontends/php/latest.php
parent76804392e7ba2ee49bea0aef1f86025b7126a551 (diff)
downloadzabbix-81dfe4b7f787e20eb47a0417007dcb453c6f8381.tar.gz
zabbix-81dfe4b7f787e20eb47a0417007dcb453c6f8381.tar.xz
zabbix-81dfe4b7f787e20eb47a0417007dcb453c6f8381.zip
Minor changes.
git-svn-id: svn://svn.zabbix.com/trunk@2881 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/latest.php')
-rw-r--r--frontends/php/latest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/frontends/php/latest.php b/frontends/php/latest.php
index 39735fb5..4361ea81 100644
--- a/frontends/php/latest.php
+++ b/frontends/php/latest.php
@@ -102,10 +102,10 @@
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,items i,hosts_groups hg".
+ $result2=DBselect("select distinct h.hostid,h.host from hosts h,items i,hosts_groups hg".
" where h.status=".HOST_STATUS_MONITORED." and h.hostid=i.hostid".
" and i.status=".ITEM_STATUS_ACTIVE." and hg.groupid=".$row["groupid"]." and hg.hostid=h.hostid".
- " group by h.hostid,h.host order by h.host");
+ " order by h.host");
while($row2=DBfetch($result2))
{
if(!check_right("Host","R",$row2["hostid"]))