Browse Source

fix: getGroups limit check syntax

Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
John Molakvoæ 1 year ago
parent
commit
4a86487859
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/private/Group/Database.php

+ 1 - 1
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) {