mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
5k Limit as well for old queries
This commit is contained in:
@@ -119,6 +119,9 @@ class Search extends CI_Controller {
|
||||
$sql = $sql[0]->query;
|
||||
|
||||
if (stristr($sql, 'select') && !stristr($sql, 'delete') && !stristr($sql, 'update')) {
|
||||
if (!(strpos(strtolower($sql),'limit'))) {
|
||||
$sql.=' limit 5000';
|
||||
}
|
||||
$data['results'] = $this->db->query($sql);
|
||||
|
||||
$this->load->view('search/search_result_ajax', $data);
|
||||
|
||||
Reference in New Issue
Block a user