From fd9424f730d298fb6421248b51fa8f594e42434c Mon Sep 17 00:00:00 2001 From: phl0 Date: Wed, 18 Jan 2023 09:31:38 +0100 Subject: [PATCH] Previous fix won't work as value would be overwritten --- application/controllers/Awards.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/application/controllers/Awards.php b/application/controllers/Awards.php index 7488938e..e45929d2 100644 --- a/application/controllers/Awards.php +++ b/application/controllers/Awards.php @@ -245,12 +245,11 @@ class Awards extends CI_Controller { public function qso_details_ajax(){ $this->load->model('logbook_model'); - $qsl = ''; $searchphrase = str_replace('"', "", $this->input->post("Searchphrase")); $band = str_replace('"', "", $this->input->post("Band")); $mode = str_replace('"', "", $this->input->post("Mode")); $type = $this->input->post('Type'); - $qsl = $this->input->post('QSL'); + $this->input->post('QSL') == null ? '' : $this->input->post('QSL'); $data['results'] = $this->logbook_model->qso_details($searchphrase, $band, $mode, $type, $qsl);