Skip to content
Snippets Groups Projects
Commit 0df67aea authored by Arthur Schiwon's avatar Arthur Schiwon
Browse files

ldap: check array for emptiness, not nullness

parent cd16c5e4
Branches
No related tags found
No related merge requests found
......@@ -186,7 +186,7 @@ class OC_GROUP_LDAP extends OC_Group_Backend {
if(!$this->configured) {
return array();
}
if(is_null($this->_groups)) {
if(empty($this->_groups)) {
$ldap_groups = OC_LDAP::fetchListOfGroups($this->ldapGroupFilter, array(OC_LDAP::conf('ldapGroupDisplayName'), 'dn'));
$this->_groups = OC_LDAP::ownCloudGroupNames($ldap_groups);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment