Index: latest.php =================================================================== --- latest.php (revision 72781) +++ latest.php (working copy) @@ -122,14 +122,19 @@ 'preservekeys' => true ]); - foreach ($filterGroups as $group) { - $multiSelectHostGroupData[] = [ - 'id' => $group['groupid'], - 'name' => $group['name'] - ]; + if ($filterGroups) { + foreach ($filterGroups as $group) { + $multiSelectHostGroupData[] = [ + 'id' => $group['groupid'], + 'name' => $group['name'] + ]; - $child_groups[] = $group['name'].'/'; + $child_groups[] = $group['name'].'/'; + } } + else { + $filter['groupids'] = []; + } } // we'll only display the values if the filter is set