[Search] Fixed incorrectly closed stristr

pull/1216/head
Peter Goodhall 2021-10-07 15:08:28 +01:00
rodzic c5f4897b65
commit c6f9a5a3ae
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -90,7 +90,7 @@ class Search extends CI_Controller {
$sql = $this->db->get('queries')->result();
$sql = $sql[0]->query;
if (stristr($sql, 'select', ) && !stristr($sql, 'delete') && !stristr($sql, 'update')) {
if (stristr($sql, 'select') && !stristr($sql, 'delete') && !stristr($sql, 'update')) {
$data['results'] = $this->db->query($sql);
$this->load->view('search/search_result_ajax', $data);