LDAP: check if index is set, fix Notices
This commit is contained in:
parent
0b42d70259
commit
800fd5fd79
1 changed files with 2 additions and 1 deletions
|
@ -339,7 +339,8 @@ abstract class Access {
|
|||
$ownCloudNames = array();
|
||||
|
||||
foreach($ldapObjects as $ldapObject) {
|
||||
$ocname = $this->dn2ocname($ldapObject['dn'], $ldapObject[$nameAttribute], $isUsers);
|
||||
$nameByLDAP = isset($ldapObject[$nameAttribute]) ? $ldapObject[$nameAttribute] : null;
|
||||
$ocname = $this->dn2ocname($ldapObject['dn'], $nameByLDAP, $isUsers);
|
||||
if($ocname) {
|
||||
$ownCloudNames[] = $ocname;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue