LDAP: fix again proper check if groups are enabled

This commit is contained in:
Arthur Schiwon 2012-10-24 18:24:06 +02:00
parent b942c1253e
commit 246221a677
1 changed files with 3 additions and 1 deletions

View File

@ -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;
}
}