Permalink
Browse files

Dont try to delete uses multiple times

  • Loading branch information...
1 parent 09869fc commit 510ff12d14008a623d427af6912d0fa5f2e6465e paca70 committed Aug 18, 2004
Showing with 1 addition and 1 deletion.
  1. +1 −1 auth/ldap/lib.php
View
@@ -303,7 +303,7 @@ function auth_sync_users () {
}
//find nonexisting users from moodles userdb
- $sql = "SELECT * FROM ".$CFG->prefix."user WHERE auth='ldap' AND guid NOT IN ('".implode('\' , \'',$usedguids)."');" ;
+ $sql = "SELECT * FROM ".$CFG->prefix."user WHERE deleted = '0' AND auth = 'ldap' AND guid NOT IN ('".implode('\' , \'',$usedguids)."');" ;
$result = get_records_sql($sql);
if (!empty($result)){

0 comments on commit 510ff12

Please sign in to comment.