summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2012-10-24 18:24:06 +0200
committerArthur Schiwon <blizzz@owncloud.com>2012-10-27 17:46:01 +0200
commit246221a677373d5ab709395e6f4e08576a3118a8 (patch)
treed700d57520b5fd7e0b68b818f38ab062aedaf4a1 /apps
parentb942c1253e5d9acb0a7e3fdbbc3df21246f27f2c (diff)
downloadnextcloud-server-246221a677373d5ab709395e6f4e08576a3118a8.tar.gz
nextcloud-server-246221a677373d5ab709395e6f4e08576a3118a8.zip
LDAP: fix again proper check if groups are enabled
Diffstat (limited to 'apps')
-rw-r--r--apps/user_ldap/group_ldap.php4
1 files changed, 3 insertions, 1 deletions
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;
}
}