Skip to content

Commit

Permalink
MDL-66671 enrol_lti: Skip grade sync when cm deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
dthies committed Feb 28, 2020
1 parent 95eb7d8 commit 2337123
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion enrol/lti/classes/task/sync_grades.php
Expand Up @@ -100,7 +100,7 @@ public function execute() {
}

// 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;
}
Expand Down

0 comments on commit 2337123

Please sign in to comment.