ldap: check index carefully, can be 0
This commit is contained in:
parent
312536dbf9
commit
470cb17f90
1 changed files with 1 additions and 1 deletions
|
@ -258,7 +258,7 @@ class OC_LDAP {
|
|||
$key = self::recursiveArraySearch($knownObjects, $ldapObject['dn']);
|
||||
|
||||
//everything is fine when we know the group
|
||||
if($key) {
|
||||
if($key !== false) {
|
||||
$ownCloudNames[] = $knownObjects[$key]['owncloud_name'];
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue