mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
LDAP: fix wrong return value
This commit is contained in:
parent
abd48496d2
commit
8b3dd87846
1 changed files with 2 additions and 2 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue