diff options
Diffstat (limited to 'frontends/php/screens.php')
-rw-r--r-- | frontends/php/screens.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/frontends/php/screens.php b/frontends/php/screens.php index e3e8402f..950b8915 100644 --- a/frontends/php/screens.php +++ b/frontends/php/screens.php @@ -217,7 +217,7 @@ include_once 'include/page_header.php'; validate_group_with_host(PERM_READ_ONLY,$options); $available_groups = get_accessible_groups_by_user($USER_DETAILS,PERM_READ_LIST); - $available_hosts = get_accessible_hosts_by_user($USER_DETAILS,PERM_READ_LIST,PERM_RES_IDS_ARRAY); + $available_hosts = get_accessible_hosts_by_user($USER_DETAILS,PERM_READ_LIST); $cmbGroup = new CComboBox('groupid',$_REQUEST['groupid'],'submit()'); $cmbHosts = new CComboBox('hostid',$_REQUEST['hostid'],'submit()'); @@ -227,7 +227,7 @@ include_once 'include/page_header.php'; $sql = 'SELECT DISTINCT g.groupid, g.name '. ' FROM groups g, hosts_groups hg, hosts h, items i '. - ' WHERE g.groupid in ('.$available_groups.') '. + ' WHERE '.DBcondition('g.groupid',$available_groups). ' AND hg.groupid=g.groupid '. ' AND h.status='.HOST_STATUS_MONITORED. ' AND h.hostid=i.hostid '. |