From 6619eba40b181f81ad86f84e3655ac906e97821a Mon Sep 17 00:00:00 2001 From: nicolasconnault Date: Tue, 11 Sep 2007 07:29:48 +0000 Subject: [PATCH] MDL-10383 Reverting Petr's boolean cast on the array of allowed groups. It makes it impossible to get the "Group event" option in the calendar. --- calendar/lib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/calendar/lib.php b/calendar/lib.php index 7c17f5948a..a2869dc8ce 100644 --- a/calendar/lib.php +++ b/calendar/lib.php @@ -164,7 +164,7 @@ function calendar_get_mini($courses, $groups, $users, $cal_month = false, $cal_y } } } - + // This is either a genius idea or an idiot idea: in order to not complicate things, we use this rule: if, after // possibly removing SITEID from $courses, there is only one course left, then clicking on a day in the month // will also set the $SESSION->cal_courses_shown variable to that one course. Otherwise, we 'd need to add extra @@ -1580,7 +1580,7 @@ function calendar_get_allowed_types(&$allowed) { $allowed->courses = array($course->id => 1); if($course->groupmode != NOGROUPS || !$course->groupmodeforce) { - $allowed->groups = (boolean)groups_get_all_groups($SESSION->cal_course_referer); + $allowed->groups = groups_get_all_groups($SESSION->cal_course_referer); } } } -- 2.39.5