From c6f9a5a3ae1ec37671b1f0603cdf01b29bfcc641 Mon Sep 17 00:00:00 2001 From: Peter Goodhall Date: Thu, 7 Oct 2021 15:08:28 +0100 Subject: [PATCH] [Search] Fixed incorrectly closed stristr --- application/controllers/Search.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/controllers/Search.php b/application/controllers/Search.php index 6ee1a4d5..50de2354 100644 --- a/application/controllers/Search.php +++ b/application/controllers/Search.php @@ -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);