From 246221a677373d5ab709395e6f4e08576a3118a8 Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Wed, 24 Oct 2012 18:24:06 +0200 Subject: [PATCH] LDAP: fix again proper check if groups are enabled --- apps/user_ldap/group_ldap.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/user_ldap/group_ldap.php b/apps/user_ldap/group_ldap.php index f1411782ad6..2aaabc2ab1f 100644 --- a/apps/user_ldap/group_ldap.php +++ b/apps/user_ldap/group_ldap.php @@ -28,7 +28,9 @@ class GROUP_LDAP extends lib\Access implements \OCP\GroupInterface { public function setConnector(lib\Connection &$connection) { parent::setConnector($connection); - if(!empty($this->connection->ldapGroupFilter) && !empty($this->connection->ldapGroupMemberAssocAttr)) { + $filter = $this->connection->ldapGroupFilter; + $gassoc = $this->connection->ldapGroupMemberAssocAttr; + if(!empty($filter) && !empty($gassoc)) { $this->enabled = true; } } -- 2.39.5