take the first result of that array, if present. Fixes 2nd display name to be 'Array', if cache is configured and enabled.

remotes/origin/activity-api-v2
Arthur Schiwon 9 years ago
parent faf65e73b7
commit b9b85e32be
  1. 4
      apps/user_ldap/lib/access.php

@ -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…
Cancel
Save