From 014d1c8fc06b0b42a3c8838488c5e78425fda7e0 Mon Sep 17 00:00:00 2001 From: phl0 Date: Mon, 12 May 2025 10:28:48 +0200 Subject: [PATCH 1/2] Replace 0 by slahed version in LoTW report --- application/controllers/Lotw.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/application/controllers/Lotw.php b/application/controllers/Lotw.php index 302278e56..56646dca8 100644 --- a/application/controllers/Lotw.php +++ b/application/controllers/Lotw.php @@ -541,6 +541,9 @@ class Lotw extends CI_Controller { if($status[0] == "Found") { $qso_id4lotw=$status[1]; + + $call = str_replace("0", "Ø", $record['call']); + if (isset($record['state'])) { $state = $record['state']; } else { @@ -603,7 +606,7 @@ class Lotw extends CI_Controller { $table .= ""; $table .= "".$record['station_callsign'].""; $table .= "".$time_on.""; - $table .= "".$record['call'].""; + $table .= "".$call.""; $table .= "".$record['mode'].""; $table .= "".$record['qsl_rcvd'].""; $table .= "".$qsl_date.""; From f09b84d0df7e9ffea67492544a48bd0aebad3a04 Mon Sep 17 00:00:00 2001 From: phl0 Date: Mon, 12 May 2025 10:32:58 +0200 Subject: [PATCH 2/2] Slash station callsign as well --- application/controllers/Lotw.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/controllers/Lotw.php b/application/controllers/Lotw.php index 56646dca8..257f2456a 100644 --- a/application/controllers/Lotw.php +++ b/application/controllers/Lotw.php @@ -243,7 +243,7 @@ class Lotw extends CI_Controller { // Nothing to upload if(empty($data['qsos']->result())){ if ($this->user_model->authorize(2)) { // Only be verbose if we have a session - echo $station_profile->station_callsign." (".$station_profile->station_profile_name."): No QSOs to upload.
"; + echo str_replace("0", "Ø", $station_profile->station_callsign)." (".$station_profile->station_profile_name."): No QSOs to upload.
"; } continue; }