ldap: check array for emptiness, not nullness

This commit is contained in:
Arthur Schiwon 2012-06-11 12:13:55 +02:00
parent cd16c5e479
commit 0df67aeae9
1 changed files with 1 additions and 1 deletions

View File

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