Skip to content

Commit

Permalink
Fix for bug 4143:
Browse files Browse the repository at this point in the history
If a user was a teacher, they didn't see any events from courses
where they were students.

I 'm back at looooooong last! :)
  • Loading branch information
defacer committed Oct 21, 2005
1 parent 7770bee commit 74d60e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions calendar/lib.php
Expand Up @@ -1128,10 +1128,10 @@ function calendar_get_default_courses($ignoreref = false) {
}
}
if(isset($USER->student) && is_array($USER->student)) {
$courses = $USER->student;
$courses = $courses + $USER->student;
}
if(isset($USER->teacher) && is_array($USER->teacher)) {
$courses = $USER->teacher;
$courses = $courses + $USER->teacher;
}
return $courses;
}
Expand Down

0 comments on commit 74d60e2

Please sign in to comment.