]> git.mjollnir.org Git - moodle.git/commitdiff
Nit-picking corrections... behavior doesn't change at all.
authordefacer <defacer>
Sat, 18 Sep 2004 16:14:54 +0000 (16:14 +0000)
committerdefacer <defacer>
Sat, 18 Sep 2004 16:14:54 +0000 (16:14 +0000)
calendar/index.html [deleted file]
calendar/lib.php

diff --git a/calendar/index.html b/calendar/index.html
deleted file mode 100644 (file)
index e69de29..0000000
index 6732692811461521197cf63a738256daea839d70..2be1eaf98632683e346adcb2b14defba2d689baa 100644 (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;
 }