From: defacer Date: Sat, 18 Sep 2004 16:14:54 +0000 (+0000) Subject: Nit-picking corrections... behavior doesn't change at all. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=4c7d113714be46c2884e184dafe35702f045caae;p=moodle.git Nit-picking corrections... behavior doesn't change at all. --- diff --git a/calendar/index.html b/calendar/index.html deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/calendar/lib.php b/calendar/lib.php index 6732692811..2be1eaf986 100644 --- a/calendar/lib.php +++ b/calendar/lib.php @@ -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; }