Merge branch 'MDL-57777-m31' of https://github.com/micaherne/moodle into MOODLE_31_STABLE

This commit is contained in:
David Monllao
2017-02-06 09:42:05 +01:00
+5 -1
View File
@@ -115,7 +115,11 @@ if ($token === "$inttoken") {
}
// Check the context actually exists.
list($context, $course, $cm) = get_context_info_array($contextid);
try {
list($context, $course, $cm) = get_context_info_array($contextid);
} catch (dml_missing_record_exception $e) {
rss_error();
}
$PAGE->set_context($context);