We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f0c0fd9 commit 0755d72Copy full SHA for 0755d72
classes/processor.php
@@ -102,8 +102,9 @@ public function process_courses() {
102
try {
103
$course = get_course($process->courseid);
104
} catch (\dml_missing_record_exception $e) {
105
- // Course no longer exists!
106
- break;
+ mtrace("The course with id {$process->courseid} no longer exists. New stdClass with id property is created.");
+ $course = new \stdClass();
107
+ $course->id = $process->courseid;
108
}
109
110
if ($process->stepindex == 0) {
0 commit comments