From: skodak Date: Wed, 24 May 2006 21:12:46 +0000 (+0000) Subject: Bug #5604 - LDAP error notice when users update profile; merged from MOODEL_16_STABLE X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=f2b5a58a0f03c5d07a5d9b85e12bfa049f74656c;p=moodle.git Bug #5604 - LDAP error notice when users update profile; merged from MOODEL_16_STABLE --- diff --git a/auth/ldap/lib.php b/auth/ldap/lib.php index f70fa31387..eb554e1a82 100644 --- a/auth/ldap/lib.php +++ b/auth/ldap/lib.php @@ -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];