From: skodak Date: Mon, 17 Jul 2006 07:31:22 +0000 (+0000) Subject: workaround by Dan for bug #6130, fixed some warnings; merged from MOODLE_16_STABLE X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=639835274cb9fc412e639eb4f2ec398b6f88be6c;p=moodle.git workaround by Dan for bug #6130, fixed some warnings; merged from MOODLE_16_STABLE --- diff --git a/calendar/event.php b/calendar/event.php index b7c78d64ab..7093c95290 100644 --- a/calendar/event.php +++ b/calendar/event.php @@ -485,6 +485,9 @@ if($eventtype == 'select') { $courseid = optional_param('courseid', $SESSION->cal_course_referer, PARAM_INT); + if ($courseid == 0) { // workaround by Dan for bug #6130 + $courseid = SITEID; + } if (!$course = get_record('course', 'id', $courseid)) { error('Incorrect course ID'); } diff --git a/calendar/event_new.html b/calendar/event_new.html index 3c036bec4e..6820973cfd 100644 --- a/calendar/event_new.html +++ b/calendar/event_new.html @@ -29,9 +29,9 @@ : - timestart);?> + timestart);?> - timestart) ?> + timestart) ?>