summaryrefslogtreecommitdiffstats
path: root/frontends/php/overview.php
diff options
context:
space:
mode:
Diffstat (limited to 'frontends/php/overview.php')
-rw-r--r--frontends/php/overview.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/frontends/php/overview.php b/frontends/php/overview.php
index 26ff1b0e..bd0b97d6 100644
--- a/frontends/php/overview.php
+++ b/frontends/php/overview.php
@@ -52,8 +52,8 @@ if(isset($_REQUEST["select"])&&($_REQUEST["select"]!="")){
$options = array('allow_all_hosts','monitored_hosts','with_monitored_items');
- $_REQUEST['groupid'] = get_request('groupid',get_profile('web.latest.last.groupid'));
- if(!isset($_REQUEST['groupid'])){
+ $_REQUEST['groupid'] = get_request('groupid',get_profile('web.latest.last.groupid', null, PROFILE_TYPE_ID));
+ if(is_null($_REQUEST['groupid'])){
array_push($options,'always_select_first_group');
validate_group(PERM_READ_ONLY, $options, 'web.overview.groupid');
}