From 3f08254ff8c0239c39435a49e9766082d794dcf3 Mon Sep 17 00:00:00 2001 From: Sam Hemelryk Date: Tue, 15 Oct 2013 08:07:47 +1300 Subject: [PATCH] MDL-42277 course: fixed missing set context --- course/ajax/management.php | 1 + 1 file changed, 1 insertion(+) 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;