datatype conversion (string to bool)

This commit is contained in:
HB9HIL
2024-11-12 14:44:19 +01:00
parent f7e5df5736
commit c6d22d28fe

View File

@@ -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'));