From: paca70 Date: Sun, 3 Aug 2003 09:07:42 +0000 (+0000) Subject: Fix from Martin Wwellard to fix PHPs case issue with attribute names. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=da7b210a75aa97c716dbe8d53d799f2686eb9ecb;p=moodle.git Fix from Martin Wwellard to fix PHPs case issue with attribute names. --- diff --git a/auth/ldap/lib.php b/auth/ldap/lib.php index 89211e9ec0..52457e4509 100644 --- a/auth/ldap/lib.php +++ b/auth/ldap/lib.php @@ -93,8 +93,8 @@ function auth_get_userinfo($username){ if ($user_info_result) { $user_entry = ldap_get_entries($ldap_connection, $user_info_result); foreach ($attrmap as $key=>$value){ - if(isset($user_entry[0][$value][0])){ - $result[$key]=$user_entry[0][$value][0]; + if(isset($user_entry[0]strtolower([$value])[0])){ + $result[$key]=$user_entry[0]strtolower([$value])[0]; } } }