]> source.dussan.org Git - nextcloud-server.git/commitdiff
ldap: check array for emptiness, not nullness
authorArthur Schiwon <blizzz@owncloud.com>
Mon, 11 Jun 2012 10:13:55 +0000 (12:13 +0200)
committerArthur Schiwon <blizzz@owncloud.com>
Mon, 11 Jun 2012 10:13:55 +0000 (12:13 +0200)
apps/user_ldap/group_ldap.php

index d2404a80aa5c2412fbc0d8d3251eb03d9299a448..78bc5b46566e9d7ce7ed1b31e4770207d0d1bc06 100644 (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);
                }