diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2014-06-27 20:09:16 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2014-06-27 20:09:16 +0200 |
commit | fe0b75ccabd1bd7a79f462920cc1c59b203a86a2 (patch) | |
tree | 878a04e59cc82dcf57c7cd5df0c143e735bae69d /apps/user_ldap | |
parent | ef7ab856f6d9a1f1c522eb36cb1ffcfa7c9730c7 (diff) | |
download | nextcloud-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.php | 3 |
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; } |