Skip to content

Commit

Permalink
merged fix for MDL-10353, calendar export not handing course variable…
Browse files Browse the repository at this point in the history
… correctly
  • Loading branch information
toyomoyo committed Oct 5, 2007
1 parent 1223d24 commit 2cc649e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion calendar/export.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,16 @@
//require_once($CFG->libdir.'/bennu/bennu.inc.php');

$action = optional_param('action', '', PARAM_ALPHA);
$course = optional_param('course', 0);
$day = optional_param('cal_d', 0, PARAM_INT);
$mon = optional_param('cal_m', 0, PARAM_INT);
$yr = optional_param('cal_y', 0, PARAM_INT);

if (isset($SESSION->cal_course_referer)) {
$course = $SESSION->cal_course_referer;
} else {
$course = optional_param('course', 0, PARAM_INT);
}

require_login();

if(!$site = get_site()) {
Expand Down

0 comments on commit 2cc649e

Please sign in to comment.