From f2b5a58a0f03c5d07a5d9b85e12bfa049f74656c Mon Sep 17 00:00:00 2001 From: skodak Date: Wed, 24 May 2006 21:12:46 +0000 Subject: [PATCH] Bug #5604 - LDAP error notice when users update profile; merged from MOODEL_16_STABLE --- 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 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]; -- 2.39.5