ldap: check index carefully, can be 0

This commit is contained in:
Arthur Schiwon 2012-06-07 12:44:59 +02:00
parent 312536dbf9
commit 470cb17f90
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}