From 58af736dec4ab851659c88846fdb5ad6d2e185fb Mon Sep 17 00:00:00 2001 From: Sara Arjona Date: Wed, 7 Feb 2018 18:02:56 +0100 Subject: [PATCH] MDL-61365 group: Fix default filter when group mode is visible --- user/index.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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;