kopia lustrzana https://github.com/magicbug/Cloudlog
[Search] Fixed incorrectly closed stristr
rodzic
c5f4897b65
commit
c6f9a5a3ae
|
@ -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);
|
||||
|
|
Ładowanie…
Reference in New Issue