Permalink
Browse files

MDL-35562 enrol_database: enrolment_sync - don't halt sync on failed …

…search for course.
  • Loading branch information...
danmarsden committed Sep 21, 2012
1 parent 5d6285c commit c70590245d18bd07b0a7d98e72e2f1e9676f63e5
Showing with 2 additions and 3 deletions.
  1. +2 −3 enrol/database/lib.php
View
@@ -493,9 +493,8 @@ public function sync_enrolments($verbose = false) {
}
$rs->Close();
} else {
- mtrace('Error while communicating with external enrolment database');
- $extdb->Close();
- return;
+ mtrace(" error: skipping course '$course->mapping' - could not match with external database");
+ continue;
}
unset($user_mapping);

0 comments on commit c705902

Please sign in to comment.