mirror of
https://github.com/moodle/moodle.git
synced 2025-03-21 16:10:15 +01:00
Merge branch 'MDL-57777-m' of https://github.com/micaherne/moodle
This commit is contained in:
commit
695f2b09ce
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user