Merge branch 'MDL-66671-m38-master' of https://github.com/dthies/moodle into MOODLE_38_STABLE

This commit is contained in:
Sara Arjona
2020-03-09 18:49:11 +01:00
+1 -1
View File
@@ -100,7 +100,7 @@ class sync_grades extends \core\task\scheduled_task {
}
// Need a valid context to continue.
if (!$context = \context::instance_by_id($tool->contextid)) {
if (!$context = \context::instance_by_id($tool->contextid, IGNORE_MISSING)) {
mtrace("Failed - Invalid contextid '$tool->contextid' for the tool '$tool->id'.");
continue;
}