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 9273bd1 commit 31fabbdbaa3922ef96ed33c71e053f23d4563183 @danmarsden danmarsden committed Sep 21, 2012
Showing with 2 additions and 3 deletions.
  1. +2 −3 enrol/database/lib.php
View
5 enrol/database/lib.php
@@ -481,9 +481,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 31fabbd

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