mirror of
https://github.com/moodle/moodle.git
synced 2025-03-18 14:40:06 +01:00
Corrected some typos
This commit is contained in:
parent
5ca03851ae
commit
c46b0a23db
@ -79,7 +79,7 @@ function auth_get_userinfo($username){
|
||||
$search_attribs = array();
|
||||
|
||||
foreach ($attrmap as $key=>$value) {
|
||||
if (!in_array($value, $search_attribs) {
|
||||
if (!in_array($value, $search_attribs)) {
|
||||
array_push($search_attribs, $value);
|
||||
}
|
||||
}
|
||||
@ -95,8 +95,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]strtolower([$value])[0])){
|
||||
$result[$key]=$user_entry[0]strtolower([$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