summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2012-06-11 12:13:55 +0200
committerArthur Schiwon <blizzz@owncloud.com>2012-06-11 12:26:48 +0200
commit0df67aeae97747cc776acbbd479471979cfcb48b (patch)
tree1aa7b6ef320adf963d95095a588719660a328661 /apps
parentcd16c5e4796204c993d5f8c76d6c9c684cd0705c (diff)
downloadnextcloud-server-0df67aeae97747cc776acbbd479471979cfcb48b.tar.gz
nextcloud-server-0df67aeae97747cc776acbbd479471979cfcb48b.zip
ldap: check array for emptiness, not nullness
Diffstat (limited to 'apps')
-rw-r--r--apps/user_ldap/group_ldap.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/user_ldap/group_ldap.php b/apps/user_ldap/group_ldap.php
index d2404a80aa5..78bc5b46566 100644
--- a/apps/user_ldap/group_ldap.php
+++ b/apps/user_ldap/group_ldap.php
@@ -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);
}