Skip to content
Browse files

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

…search for course.
  • Loading branch information...
1 parent f187922 commit bc7088d881874dd9bab2f5728bee415ff90eedb2 @danmarsden danmarsden committed with stronk7 Sep 21, 2012
Showing with 2 additions and 3 deletions.
  1. +2 −3 enrol/database/lib.php
View
5 enrol/database/lib.php
@@ -446,9 +446,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 bc7088d

Please sign in to comment.
Something went wrong with that request. Please try again.