summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2014-06-27 20:09:16 +0200
committerArthur Schiwon <blizzz@owncloud.com>2014-06-27 20:09:16 +0200
commitfe0b75ccabd1bd7a79f462920cc1c59b203a86a2 (patch)
tree878a04e59cc82dcf57c7cd5df0c143e735bae69d /apps/user_ldap
parentef7ab856f6d9a1f1c522eb36cb1ffcfa7c9730c7 (diff)
downloadnextcloud-server-fe0b75ccabd1bd7a79f462920cc1c59b203a86a2.tar.gz
nextcloud-server-fe0b75ccabd1bd7a79f462920cc1c59b203a86a2.zip
also adapt result check from readAttribute
Diffstat (limited to 'apps/user_ldap')
-rw-r--r--apps/user_ldap/group_ldap.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/user_ldap/group_ldap.php b/apps/user_ldap/group_ldap.php
index af41bf65323..1a35691be85 100644
--- a/apps/user_ldap/group_ldap.php
+++ b/apps/user_ldap/group_ldap.php
@@ -469,8 +469,7 @@ class GROUP_LDAP extends BackendUtility implements \OCP\GroupInterface {
}
//if group really still exists, we will be able to read its objectclass
- $objcs = $this->access->readAttribute($dn, '');
- if(!$objcs || empty($objcs)) {
+ if(!is_array($this->access->readAttribute($dn, ''))) {
$this->access->connection->writeToCache('groupExists'.$gid, false);
return false;
}