Skip to content

Commit

Permalink
Fixed bug reported by John Ryan (http://moodle.org/mod/forum/discuss.…
Browse files Browse the repository at this point in the history
…php?d=7347)

which caused group events to not display under any circumstances.
  • Loading branch information
defacer committed Apr 26, 2004
1 parent 0a1a564 commit 9159b0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion calendar/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 9159b0f

Please sign in to comment.