]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix: getGroups limit check syntax 36592/head
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>
Tue, 9 May 2023 15:48:11 +0000 (17:48 +0200)
committerRobin Appelman <robin@icewind.nl>
Thu, 11 May 2023 15:30:04 +0000 (17:30 +0200)
Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
lib/private/Group/Database.php

index edfc76ef836e6736ce162bf490ddec28eea3dd32..ef5641d81370d7a743f144a5e2f28642cbdd1d87 100644 (file)
@@ -283,7 +283,7 @@ class Database extends ABackend implements
                        )));
                }
 
-               if (!$limit > 0) {
+               if ($limit > 0) {
                        $query->setMaxResults($limit);
                }
                if ($offset > 0) {