mirror of
https://github.com/moodle/moodle.git
synced 2025-03-18 22:50:19 +01:00
Fix from Martin Wwellard to fix PHPs case issue with attribute names.
This commit is contained in:
parent
4398d023a9
commit
da7b210a75
@ -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];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user