Skip to content
Snippets Groups Projects
Commit 8b3dd878 authored by Arthur Schiwon's avatar Arthur Schiwon Committed by Björn Schießle
Browse files

LDAP: fix wrong return value

parent abd48496
No related branches found
No related tags found
No related merge requests found
...@@ -140,7 +140,7 @@ class GROUP_LDAP extends lib\Access implements \OCP\GroupInterface { ...@@ -140,7 +140,7 @@ class GROUP_LDAP extends lib\Access implements \OCP\GroupInterface {
return array(); return array();
} }
if(!$this->groupExists($gid)) { if(!$this->groupExists($gid)) {
return false; return array();
} }
$cachekey = 'usersInGroup-'.$gid.'-'.$search.'-'.$limit.'-'.$offset; $cachekey = 'usersInGroup-'.$gid.'-'.$search.'-'.$limit.'-'.$offset;
// check for cache of the exact query // check for cache of the exact query
...@@ -221,7 +221,7 @@ class GROUP_LDAP extends lib\Access implements \OCP\GroupInterface { ...@@ -221,7 +221,7 @@ class GROUP_LDAP extends lib\Access implements \OCP\GroupInterface {
return array(); return array();
} }
if(!$this->groupExists($gid)) { if(!$this->groupExists($gid)) {
return false; return array();
} }
$users = $this->usersInGroup($gid, $search, $limit, $offset); $users = $this->usersInGroup($gid, $search, $limit, $offset);
$displayNames = array(); $displayNames = array();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment