From 3bb2ac066843a18838a63873418ccacb31f9d51c Mon Sep 17 00:00:00 2001 From: mjollnir_ Date: Wed, 28 Sep 2005 02:58:05 +0000 Subject: [PATCH] Backing out broken last patch - bug 4119 --- calendar/lib.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/calendar/lib.php b/calendar/lib.php index 7f5a2588d3a..cc170f831eb 100644 --- a/calendar/lib.php +++ b/calendar/lib.php @@ -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