take the first result of that array, if present. Fixes 2nd display name to be 'Array', if cache is configured and enabled.
This commit is contained in:
parent
faf65e73b7
commit
b9b85e32be
1 changed files with 2 additions and 2 deletions
|
@ -546,8 +546,8 @@ class Access extends LDAPUtility implements user\IUserTools {
|
|||
if(is_null($nameByLDAP)) {
|
||||
continue;
|
||||
}
|
||||
$sndName = isset($ldapObject[$sndAttribute])
|
||||
? $ldapObject[$sndAttribute] : '';
|
||||
$sndName = isset($ldapObject[$sndAttribute][0])
|
||||
? $ldapObject[$sndAttribute][0] : '';
|
||||
$this->cacheUserDisplayName($ocName, $nameByLDAP, $sndName);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue