From 510ff12d14008a623d427af6912d0fa5f2e6465e Mon Sep 17 00:00:00 2001 From: paca70 Date: Wed, 18 Aug 2004 11:29:45 +0000 Subject: [PATCH] Dont try to delete uses multiple times --- auth/ldap/lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auth/ldap/lib.php b/auth/ldap/lib.php index f1f8742be0..8a5ff444a4 100644 --- a/auth/ldap/lib.php +++ b/auth/ldap/lib.php @@ -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)){ -- 2.39.5