From 52455b068cf85e6766a5c3df42efdb23dcb1c140 Mon Sep 17 00:00:00 2001
From: Damien <damien.burel@maarch.org>
Date: Mon, 18 Feb 2019 17:06:07 +0100
Subject: [PATCH] FIX #9669 no Fake limit

---
 core/class/class_request.php | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/core/class/class_request.php b/core/class/class_request.php
index 38a833910f0..fc674450601 100755
--- a/core/class/class_request.php
+++ b/core/class/class_request.php
@@ -127,14 +127,12 @@ class request extends dbquery
             }
         }
         //Time to create the SQL Query
-        $query = "";
         $dist = '';
         if ($distinct_argument == true) {
             $dist = " distinct ";
         }
         //LIMIT 100
-        $fakeLimit = ($limit > 100) ? $limit : 100;
-        $query = $db->limit_select($start, $fakeLimit, $field_string, $table_string." ".$join, $where_string, $other, $dist);
+        $query = $db->limit_select($start, 500, $field_string, $table_string." ".$join, $where_string, $other, $dist);
 
         if (preg_match('/_view/i', $query)) {
             $_SESSION['last_select_query'] = $query;
-- 
GitLab