From 4a864878593446133e7f135047ee7a7772561010 Mon Sep 17 00:00:00 2001 From: =?utf8?q?John=20Molakvo=C3=A6?= Date: Tue, 9 May 2023 17:48:11 +0200 Subject: [PATCH] fix: getGroups limit check syntax MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com> Signed-off-by: John Molakvoæ --- lib/private/Group/Database.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/Group/Database.php b/lib/private/Group/Database.php index edfc76ef836..ef5641d8137 100644 --- a/lib/private/Group/Database.php +++ b/lib/private/Group/Database.php @@ -283,7 +283,7 @@ class Database extends ABackend implements ))); } - if (!$limit > 0) { + if ($limit > 0) { $query->setMaxResults($limit); } if ($offset > 0) { -- 2.39.5