From c6d22d28fe7f217d9a41b359279fcb75e71db789 Mon Sep 17 00:00:00 2001 From: HB9HIL Date: Tue, 12 Nov 2024 14:44:19 +0100 Subject: [PATCH] datatype conversion (string to bool) --- application/controllers/Lookup.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/application/controllers/Lookup.php b/application/controllers/Lookup.php index 9ad37584d..4d1a56d3f 100644 --- a/application/controllers/Lookup.php +++ b/application/controllers/Lookup.php @@ -51,13 +51,7 @@ class Lookup extends CI_Controller { $data['bands'] = $this->bands->get_worked_bands(xss_clean($this->input->post('type'))); } - if ($this->input->post('reduced_mode', true)) { - $data['reduced_mode'] = true; - } else { - $data['reduced_mode'] = false; - } - - + $data['reduced_mode'] = xss_clean($this->input->post('reduced_mode')) == 'true' ? true : false; $data['dxcc'] = xss_clean($this->input->post('dxcc')); $data['was'] = xss_clean($this->input->post('was')); $data['sota'] = xss_clean($this->input->post('sota'));