ldap: check index carefully, can be 0

remotes/origin/stable4
Arthur Schiwon 13 years ago
parent 9266f4da99
commit 691f00eb39
  1. 2
      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;
}

Loading…
Cancel
Save