LDAP: check if index is set, fix Notices
This commit is contained in:
parent
0b42d70259
commit
800fd5fd79
|
@ -339,7 +339,8 @@ abstract class Access {
|
||||||
$ownCloudNames = array();
|
$ownCloudNames = array();
|
||||||
|
|
||||||
foreach($ldapObjects as $ldapObject) {
|
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) {
|
if($ocname) {
|
||||||
$ownCloudNames[] = $ocname;
|
$ownCloudNames[] = $ocname;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue