Merge branch 'MDL-61365-master' of git://github.com/sarjona/moodle

This commit is contained in:
Andrew Nicols 2018-03-12 13:44:17 +08:00
commit d300abab0e

View File

@ -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;