diff --git a/application/controllers/Station.php b/application/controllers/Station.php index 75b68c1c9..16e1bc2e8 100644 --- a/application/controllers/Station.php +++ b/application/controllers/Station.php @@ -37,7 +37,7 @@ class Station extends CI_Controller if ($this->form_validation->run() == FALSE) { $data['page_title'] = __("Create Station Location"); $data['station_profile_name'] = $this->input->post('station_profile_name'); - $data['station_callsign'] = $this->input->post('station_callsign'); + $data['station_callsign'] = str_replace('Ø', '0', ($this->input->post('station_callsign') ?? '')); $data['station_power'] = $this->input->post('station_power'); $data['dxcc'] = $this->input->post('dxcc'); $data['city'] = $this->input->post('city'); diff --git a/application/models/Stations.php b/application/models/Stations.php index b5e894aca..d8a0de5f2 100644 --- a/application/models/Stations.php +++ b/application/models/Stations.php @@ -139,7 +139,7 @@ class Stations extends CI_Model { 'station_pota' => xss_clean(strtoupper($this->input->post('pota', true))), 'station_sig' => xss_clean(strtoupper($this->input->post('sig', true))), 'station_sig_info' => xss_clean(strtoupper($this->input->post('sig_info', true))), - 'station_callsign' => trim(xss_clean(strtoupper($this->input->post('station_callsign', true)))), + 'station_callsign' => str_replace('Ø', '0', trim(xss_clean(strtoupper($this->input->post('station_callsign', true))))), 'station_power' => is_numeric(xss_clean($this->input->post('station_power', true))) ? xss_clean($this->input->post('station_power', true)) : NULL, 'station_dxcc' => xss_clean($this->input->post('dxcc', true)), 'station_cnty' => $county, @@ -219,7 +219,7 @@ class Stations extends CI_Model { 'station_pota' => xss_clean(strtoupper($this->input->post('pota', true))), 'station_sig' => xss_clean(strtoupper($this->input->post('sig', true))), 'station_sig_info' => xss_clean(strtoupper($this->input->post('sig_info', true))), - 'station_callsign' => trim(xss_clean(strtoupper($this->input->post('station_callsign', true)))), + 'station_callsign' => str_replace('Ø', '0', trim(xss_clean(strtoupper($this->input->post('station_callsign', true))))), 'station_power' => is_numeric(xss_clean($this->input->post('station_power', true))) ? xss_clean($this->input->post('station_power', true)) : NULL, 'station_dxcc' => xss_clean($this->input->post('dxcc', true)), 'station_cnty' => $county,