From: Arthur Schiwon Date: Thu, 7 Jun 2012 10:44:59 +0000 (+0200) Subject: ldap: check index carefully, can be 0 X-Git-Tag: v4.5.0beta1~74^2~423^2~16 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=470cb17f90840e9bb997d30c0e4575384fc5df72;p=nextcloud-server.git ldap: check index carefully, can be 0 --- diff --git a/apps/user_ldap/lib_ldap.php b/apps/user_ldap/lib_ldap.php index f6942ad326e..6f4c0b0aad9 100644 --- a/apps/user_ldap/lib_ldap.php +++ b/apps/user_ldap/lib_ldap.php @@ -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; }