Permalink
Browse files

Merge branch 'w27_MDL-33876_m24_delenrol' of git://github.com/skodak/…

…moodle
  • Loading branch information...
2 parents c75599f + 0004317 commit a079d364f33bc47b703ceca0c41d0bc6eb5339b5 @stronk7 stronk7 committed Jul 4, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 enrol/database/lib.php
View
@@ -445,8 +445,9 @@ public function sync_enrolments($verbose = false) {
$sql = $this->db_get_sql($table, array($coursefield=>$course->mapping), $sqlfields);
if ($rs = $extdb->Execute($sql)) {
if (!$rs->EOF) {
+ $usersearch = array('deleted' => 0);
if ($localuserfield === 'username') {
- $usersearch = array('mnethostid'=>$CFG->mnet_localhost_id, 'deleted' =>0);
+ $usersearch['mnethostid'] = $CFG->mnet_localhost_id;
}
while ($fields = $rs->FetchRow()) {
$fields = array_change_key_case($fields, CASE_LOWER);

0 comments on commit a079d36

Please sign in to comment.