Skip to content

Commit 762999f

Browse files
skjnldsvcome-nc
andauthored
fix: getGroups limit check syntax
Co-authored-by: Côme Chilliet <[email protected]> Signed-off-by: John Molakvoæ <[email protected]>
1 parent 704dd76 commit 762999f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/private/Group/Database.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ public function getGroups(string $search = '', int $limit = -1, int $offset = 0)
279279
)));
280280
}
281281

282-
if (!$limit > 0) {
282+
if ($limit <= 0) {
283283
$query->setMaxResults($limit);
284284
}
285285
if ($offset > 0) {

0 commit comments

Comments
 (0)