]> git.mjollnir.org Git - moodle.git/commitdiff
Fixed bug reported by John Ryan (http://moodle.org/mod/forum/discuss.php?d=7347)
authordefacer <defacer>
Mon, 26 Apr 2004 10:44:16 +0000 (10:44 +0000)
committerdefacer <defacer>
Mon, 26 Apr 2004 10:44:16 +0000 (10:44 +0000)
which caused group events to not display under any circumstances.

calendar/lib.php

index 6a0d6710cf1e26c457703ae70549d6d4e12bdcf4..9d1b0d96950e58c25af195d2e63541cc7ae8bc52 100644 (file)
@@ -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;
                     }
                 }