diff --git a/course/ajax/management.php b/course/ajax/management.php index 9a0e4e62273..0566f610527 100644 --- a/course/ajax/management.php +++ b/course/ajax/management.php @@ -33,6 +33,7 @@ require_once($CFG->dirroot.'/course/lib.php'); $action = required_param('action', PARAM_ALPHA); require_sesskey(); // Gotta have the sesskey. require_login(); // Gotta be logged in (of course). +$PAGE->set_context(context_system::instance()); // Prepare an outcome object. We always use this. $outcome = new stdClass;