]> source.dussan.org Git - nextcloud-server.git/commitdiff
LDAP: fix wrong return value
authorArthur Schiwon <blizzz@owncloud.com>
Wed, 20 Mar 2013 12:17:40 +0000 (13:17 +0100)
committerBjörn Schießle <schiessle@owncloud.com>
Mon, 25 Mar 2013 11:33:10 +0000 (12:33 +0100)
apps/user_ldap/group_ldap.php

index 3dbc5e7d895ce8d9a0e434d5bdedf0d6c302350e..ca5b3a35e5a0021b95bdfe9f83768a224daa9d77 100644 (file)
@@ -140,7 +140,7 @@ class GROUP_LDAP extends lib\Access implements \OCP\GroupInterface {
                        return array();
                }
                if(!$this->groupExists($gid)) {
-                       return false;
+                       return array();
                }
                $cachekey = 'usersInGroup-'.$gid.'-'.$search.'-'.$limit.'-'.$offset;
                // check for cache of the exact query
@@ -221,7 +221,7 @@ class GROUP_LDAP extends lib\Access implements \OCP\GroupInterface {
                        return array();
                }
                if(!$this->groupExists($gid)) {
-                       return false;
+                       return array();
                }
                $users = $this->usersInGroup($gid, $search, $limit, $offset);
                $displayNames = array();