summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/group_ldap.php
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2013-03-20 13:17:40 +0100
committerBjörn Schießle <schiessle@owncloud.com>2013-03-25 12:33:10 +0100
commit8b3dd8784696445c8554de2d07f1ddcbcd86b8d6 (patch)
tree5bcbe0f0478125d8e7c407008ad47c69a4db2880 /apps/user_ldap/group_ldap.php
parentabd48496d2ea07adc47fd393167d0686de9b2245 (diff)
downloadnextcloud-server-8b3dd8784696445c8554de2d07f1ddcbcd86b8d6.tar.gz
nextcloud-server-8b3dd8784696445c8554de2d07f1ddcbcd86b8d6.zip
LDAP: fix wrong return value
Diffstat (limited to 'apps/user_ldap/group_ldap.php')
-rw-r--r--apps/user_ldap/group_ldap.php4
1 files changed, 2 insertions, 2 deletions
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();