Backing out broken last patch - bug 4119

This commit is contained in:
mjollnir_ 2005-09-28 02:58:05 +00:00
parent 9c5b82dd34
commit 3bb2ac0668

View File

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