More replacements ...

This commit is contained in:
phl0
2025-11-14 17:45:20 +01:00
parent cfe7b5c004
commit 0bbe0011dc
2 changed files with 3 additions and 3 deletions

View File

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

View File

@@ -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,