diff --git a/application/controllers/Stationsetup.php b/application/controllers/Stationsetup.php index a869b8edb..0b793e6b5 100644 --- a/application/controllers/Stationsetup.php +++ b/application/controllers/Stationsetup.php @@ -572,39 +572,39 @@ class Stationsetup extends CI_Controller { // Data for station_profile $dbdata = [ 'station_active' => 0, - 'station_profile_name' => xss_clean($loc['station_profile_name']) ?? null, - 'station_gridsquare' => xss_clean($loc['station_gridsquare']) ?? null, - 'station_city' => xss_clean($loc['station_city']) ?? null, - 'station_iota' => xss_clean($loc['station_iota']) ?? null, - 'station_sota' => xss_clean($loc['station_sota']) ?? null, - 'station_callsign' => xss_clean($loc['station_callsign']) ?? null, - 'station_power' => xss_clean($loc['station_power']) ?? null, - 'station_dxcc' => xss_clean($loc['station_dxcc']) ?? null, - 'station_cq' => xss_clean($loc['station_cq']) ?? null, - 'station_itu' => xss_clean($loc['station_itu']) ?? null, - 'station_sig' => xss_clean($loc['station_sig']) ?? null, - 'station_sig_info' => xss_clean($loc['station_sig_info']) ?? null, - 'station_wwff' => xss_clean($loc['station_wwff']) ?? null, - 'station_pota' => xss_clean($loc['station_pota']) ?? null, - 'state' => xss_clean($loc['state']) ?? null, - 'station_cnty' => xss_clean($loc['station_cnty']) ?? null, - 'qrzrealtime' => xss_clean($loc['qrzrealtime']) ?? 0, - 'oqrs' => xss_clean($loc['oqrs']) ?? 0, - 'oqrs_text' => xss_clean($loc['oqrs_text']) ?? null, - 'oqrs_email' => xss_clean($loc['oqrs_email']) ?? null, - 'webadifrealtime' => xss_clean($loc['webadifrealtime']) ?? null, - 'clublogignore' => xss_clean($loc['clublogignore']) ?? 1, - 'clublogrealtime' => xss_clean($loc['clublogrealtime']) ?? 0, - 'hrdlogrealtime' => xss_clean($loc['hrdlogrealtime']) ?? 0, - 'hrdlog_username' => xss_clean($loc['hrdlog_username']) ?? null, - 'eqslqthnickname' => xss_clean($loc['eqslqthnickname']) ?? null, + 'station_profile_name' => xss_clean($loc['station_profile_name'] ?? null), + 'station_gridsquare' => xss_clean($loc['station_gridsquare'] ?? null), + 'station_city' => xss_clean($loc['station_city'] ?? null), + 'station_iota' => xss_clean($loc['station_iota'] ?? null), + 'station_sota' => xss_clean($loc['station_sota'] ?? null), + 'station_callsign' => xss_clean($loc['station_callsign'] ?? null), + 'station_power' => xss_clean($loc['station_power'] ?? null), + 'station_dxcc' => xss_clean($loc['station_dxcc'] ?? null), + 'station_cq' => xss_clean($loc['station_cq'] ?? null), + 'station_itu' => xss_clean($loc['station_itu'] ?? null), + 'station_sig' => xss_clean($loc['station_sig'] ?? null), + 'station_sig_info' => xss_clean($loc['station_sig_info'] ?? null), + 'station_wwff' => xss_clean($loc['station_wwff'] ?? null), + 'station_pota' => xss_clean($loc['station_pota'] ?? null), + 'state' => xss_clean($loc['state'] ?? null), + 'station_cnty' => xss_clean($loc['station_cnty'] ?? null), + 'qrzrealtime' => xss_clean($loc['qrzrealtime'] ?? 0), + 'oqrs' => xss_clean($loc['oqrs'] ?? 0), + 'oqrs_text' => xss_clean($loc['oqrs_text'] ?? null), + 'oqrs_email' => xss_clean($loc['oqrs_email'] ?? null), + 'webadifrealtime' => xss_clean($loc['webadifrealtime'] ?? null), + 'clublogignore' => xss_clean($loc['clublogignore'] ?? 1), + 'clublogrealtime' => xss_clean($loc['clublogrealtime'] ?? 0), + 'hrdlogrealtime' => xss_clean($loc['hrdlogrealtime'] ?? 0), + 'hrdlog_username' => xss_clean($loc['hrdlog_username'] ?? null), + 'eqslqthnickname' => xss_clean($loc['eqslqthnickname'] ?? null), 'webadifapiurl' => 'https://qo100dx.club/api', 'user_id' => $this->session->userdata('user_id'), ]; // Data for user_options $optiondata = [ - 'eqsl_default_qslmsg' => $loc['eqsl_default_qslmsg'] ?? null, + 'eqsl_default_qslmsg' => xss_clean($loc['eqsl_default_qslmsg'] ?? null), ]; // Insert or update location in DB