Signed-off-by: Clement Wong <git@clement.hk>
return $groupUsers;
}
+ if ($limit === -1) {
+ $limit = null;
+ }
// check for cache of the query without limit and offset
$groupUsers = $this->access->connection->getFromCache('usersInGroup-' . $gid . '-' . $search);
if (!is_null($groupUsers)) {
return $groupUsers;
}
- if ($limit === -1) {
- $limit = null;
- }
$groupDN = $this->access->groupname2dn($gid);
if (!$groupDN) {
// group couldn't be found, return empty resultset