Nit-picking corrections... behavior doesn't change at all.

This commit is contained in:
defacer
2004-09-18 16:14:54 +00:00
parent 23f160464a
commit 4c7d113714
2 changed files with 3 additions and 3 deletions
View File
+3 -3
View File
@@ -1029,7 +1029,7 @@ function calendar_get_default_courses($ignoreref = false) {
global $USER, $CFG, $SESSION;
if(!empty($SESSION->cal_course_referer) && !$ignoreref) {
return array($SESSION->cal_course_referer => SITEID);
return array($SESSION->cal_course_referer => 1);
}
if(empty($USER)) {
@@ -1042,10 +1042,10 @@ function calendar_get_default_courses($ignoreref = false) {
return $courses;
}
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;
}