Skip to content
Snippets Groups Projects
Verified Commit 481b33ff authored by Damien's avatar Damien
Browse files

FIX #9669 Fake limit

parent 5531684d
No related branches found
No related tags found
No related merge requests found
......@@ -132,8 +132,9 @@ class request extends dbquery
if ($distinct_argument == true) {
$dist = " distinct ";
}
//LIMIT 500
$query = $db->limit_select($start, 500, $field_string, $table_string." ".$join, $where_string, $other, $dist);
//LIMIT 100
$fakeLimit = ($limit > 100) ? $limit : 100;
$query = $db->limit_select($start, $fakeLimit, $field_string, $table_string." ".$join, $where_string, $other, $dist);
if (preg_match('/_view/i', $query)) {
$_SESSION['last_select_query'] = $query;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment