MDL-71136 backup: Fix moodle_exception path.

This commit is contained in:
Tomo Tsuyuki
2021-03-30 10:56:09 +11:00
parent ef7fcf4261
commit ed1ce9cf9b
2 changed files with 68 additions and 1 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ class course_backup_task extends \core\task\adhoc_task {
try {
$course = $DB->get_record('course', array('id' => $courseid), '*', MUST_EXIST);
} catch (moodle_exception $e) {
} catch (\moodle_exception $e) {
mtrace('Invalid course id: ' . $courseid . ', task aborted.');
return;
}