]> git.mjollnir.org Git - moodle.git/commitdiff
Bug #5604 - LDAP error notice when users update profile; merged from MOODEL_16_STABLE
authorskodak <skodak>
Wed, 24 May 2006 21:12:46 +0000 (21:12 +0000)
committerskodak <skodak>
Wed, 24 May 2006 21:12:46 +0000 (21:12 +0000)
auth/ldap/lib.php

index f70fa313871d8cfd803fe35491efe394f3f8a129..eb554e1a825991f178979857b288977932043654 100644 (file)
@@ -838,7 +838,7 @@ function auth_user_update($olduser, $newuser) {
     if ($user_info_result){
 
         $user_entry = auth_ldap_get_entries($ldapconnection, $user_info_result);
-        if (count($user_entry)) {
+        if (count($user_entry) > 1) {
             trigger_error("ldap: Strange! More than one user record found in ldap. Only using the first one.");
         }
         $user_entry = $user_entry[0];