[Pkg-owncloud-commits] [owncloud] 08/394: LDAP: fix again proper check if groups are enabled
David Prévot
taffit at alioth.debian.org
Fri Nov 8 23:11:13 UTC 2013
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to annotated tag v4.5.10
in repository owncloud.
commit 4b39ce513425c8c84f1984c9afc97493b4fb03d9
Author: Arthur Schiwon <blizzz at owncloud.com>
Date: Wed Oct 24 18:24:06 2012 +0200
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 f141178..2aaabc2 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;
}
}
--
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