unset any limit as we do not have pagination when showing search-results, refs #869

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2020-07-29 08:28:04 +02:00
parent aa45a0302e
commit eff630da8d

View File

@@ -164,6 +164,9 @@ class Pagination
// if a search is performed, the result-entries-count is irrelevant
// we do not want pagination
$this->is_search = true;
// unset any limit as we do not have pagination when showing search-results
unset($this->data['sql_limit']);
unset($this->data['sql_offset']);
return $this;
}