[Pkg-owncloud-commits] [owncloud] 111/273: also adapt result check from readAttribute

David Prévot taffit at moszumanska.debian.org
Fri Jul 4 03:13:05 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository owncloud.

commit fe0b75ccabd1bd7a79f462920cc1c59b203a86a2
Author: Arthur Schiwon <blizzz at owncloud.com>
Date:   Fri Jun 27 20:09:16 2014 +0200

    also adapt result check from readAttribute
---
 apps/user_ldap/group_ldap.php | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/apps/user_ldap/group_ldap.php b/apps/user_ldap/group_ldap.php
index af41bf6..1a35691 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;
 		}

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list