mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 09:26:35 +02:00
MDL-57777 rss: Return 404 when context not found.
This commit is contained in:
parent
72b489ef65
commit
7035e0f5b5
1 changed files with 1 additions and 1 deletions
|
@ -117,7 +117,7 @@ if ($token === "$inttoken") {
|
|||
// Check the context actually exists.
|
||||
try {
|
||||
list($context, $course, $cm) = get_context_info_array($contextid);
|
||||
} catch (Exception $e) {
|
||||
} catch (dml_missing_record_exception $e) {
|
||||
rss_error();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue