From: defacer Date: Mon, 26 Apr 2004 10:44:16 +0000 (+0000) Subject: Fixed bug reported by John Ryan (http://moodle.org/mod/forum/discuss.php?d=7347) X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=9159b0fed6b76aca15ff2fbab5ae27b39494872f;p=moodle.git Fixed bug reported by John Ryan (http://moodle.org/mod/forum/discuss.php?d=7347) which caused group events to not display under any circumstances. --- diff --git a/calendar/lib.php b/calendar/lib.php index 6a0d6710cf..9d1b0d9695 100644 --- a/calendar/lib.php +++ b/calendar/lib.php @@ -1057,7 +1057,7 @@ function calendar_set_filters(&$courses, &$group, &$user, $defaultcourses = NULL else { $grouparray = array(); foreach ($USER->groupmember as $courseid => $mgroupid) { - if (in_array($courseid, $groupcourses)) { + if (array_key_exists($courseid, $groupcourses)) { $grouparray[] = $mgroupid; } }