From: Arthur Schiwon Date: Wed, 20 Mar 2013 12:17:40 +0000 (+0100) Subject: LDAP: fix wrong return value X-Git-Tag: v6.0.0alpha2~1014 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8b3dd8784696445c8554de2d07f1ddcbcd86b8d6;p=nextcloud-server.git LDAP: fix wrong return value --- diff --git a/apps/user_ldap/group_ldap.php b/apps/user_ldap/group_ldap.php index 3dbc5e7d895..ca5b3a35e5a 100644 --- a/apps/user_ldap/group_ldap.php +++ b/apps/user_ldap/group_ldap.php @@ -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();