mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
Backing out broken last patch - bug 4119
This commit is contained in:
parent
9c5b82dd34
commit
3bb2ac0668
@ -1057,10 +1057,7 @@ function calendar_set_filters(&$courses, &$group, &$user, $courseeventsfrom = NU
|
||||
|
||||
// The first time we get in here, retrieve all groupmodes at once
|
||||
if($groupmodes === NULL) {
|
||||
$count = count($groupcourses);
|
||||
if ($count && ($count != 1 || !empty($count[0]))) {
|
||||
$groupmodes = get_records_list('course', 'id', implode(',', $groupcourses), '', 'id, groupmode, groupmodeforce');
|
||||
}
|
||||
$groupmodes = get_records_list('course', 'id', implode(',', $groupcourses), '', 'id, groupmode, groupmodeforce');
|
||||
}
|
||||
|
||||
// If this course has groups, show events from all of them
|
||||
|
Loading…
x
Reference in New Issue
Block a user