diff --git a/application/models/Stations.php b/application/models/Stations.php index 48c7001b..7c7d16a7 100644 --- a/application/models/Stations.php +++ b/application/models/Stations.php @@ -75,7 +75,7 @@ class Stations extends CI_Model { 'station_sig' => xss_clean(strtoupper($this->input->post('sig', true))), 'station_sig_info' => xss_clean(strtoupper($this->input->post('sig_info', true))), 'station_callsign' => xss_clean($this->input->post('station_callsign', true)), - 'station_power' => xss_clean($this->input->post('station_power', 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' => xss_clean($this->input->post('station_cnty', true)), 'station_cq' => xss_clean($this->input->post('station_cq', true)), @@ -108,7 +108,7 @@ class Stations extends CI_Model { 'station_sig' => xss_clean($this->input->post('sig', true)), 'station_sig_info' => xss_clean($this->input->post('sig_info', true)), 'station_callsign' => xss_clean($this->input->post('station_callsign', true)), - 'station_power' => xss_clean($this->input->post('station_power', 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' => xss_clean($this->input->post('station_cnty', true)), 'station_cq' => xss_clean($this->input->post('station_cq', true)), diff --git a/application/views/station_profile/create.php b/application/views/station_profile/create.php index 1a234bbd..4f2169a0 100644 --- a/application/views/station_profile/create.php +++ b/application/views/station_profile/create.php @@ -42,7 +42,7 @@