summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2012-06-07 12:44:59 +0200
committerArthur Schiwon <blizzz@owncloud.com>2012-06-07 13:39:42 +0200
commit470cb17f90840e9bb997d30c0e4575384fc5df72 (patch)
tree1fc81205a598926d5ecdadf18f517a4a158cc062 /apps
parent312536dbf951a72ff849cdd57138eded6c4668e6 (diff)
downloadnextcloud-server-470cb17f90840e9bb997d30c0e4575384fc5df72.tar.gz
nextcloud-server-470cb17f90840e9bb997d30c0e4575384fc5df72.zip
ldap: check index carefully, can be 0
Diffstat (limited to 'apps')
-rw-r--r--apps/user_ldap/lib_ldap.php2
1 files changed, 1 insertions, 1 deletions
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;
}