Skip to content

Commit

Permalink
Merged from MOODLE_15_STABLE - Fix for using dn as idnumber - thanks …
Browse files Browse the repository at this point in the history
  • Loading branch information
martinlanghoff committed Aug 11, 2005
1 parent 831e0b0 commit b957a44
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion auth/ldap/lib.php
Expand Up @@ -125,9 +125,13 @@ function auth_get_userinfo($username){
$values = array($values);
}
foreach ($values as $value) {
if(isset($user_entry[0][strtolower($value)][0])){
if(is_array($user_entry[0][strtolower($value)])) {
$result[$key]=addslashes(stripslashes(utf8_decode($user_entry[0][strtolower($value)][0])));
}
else {
$result[$key] = addslashes(stripslashes(utf8_decode($user_entry[0][strtolower($value)])));

}
}
}
}
Expand Down

0 comments on commit b957a44

Please sign in to comment.