diff --git a/user/index.php b/user/index.php index aed9016d967..993d5118e49 100644 --- a/user/index.php +++ b/user/index.php @@ -178,9 +178,8 @@ foreach ($filtersapplied as $filter) { break; } } - // If course supports groups we may need to set a default. -if ($groupid !== false) { +if (!empty($groupid)) { if ($canaccessallgroups) { // User can access all groups, let them filter by whatever was selected. $filtersapplied[] = USER_FILTER_GROUP . ':' . $groupid;