From 7831790026f679cc0fb9ae6c9448585a79ec9ff9 Mon Sep 17 00:00:00 2001 From: phl0 Date: Wed, 12 Jul 2023 11:15:14 +0200 Subject: [PATCH] Handle not found QSO records correctly --- application/controllers/Lotw.php | 43 +++++++++++++++++++------------- 1 file changed, 26 insertions(+), 17 deletions(-) diff --git a/application/controllers/Lotw.php b/application/controllers/Lotw.php index edfc6ff2..1f9a9bca 100644 --- a/application/controllers/Lotw.php +++ b/application/controllers/Lotw.php @@ -537,26 +537,35 @@ class Lotw extends CI_Controller { } $lotw_status = $this->logbook_model->lotw_update($time_on, $record['call'], $record['band'], $qsl_date, $record['qsl_rcvd'], $state, $qsl_gridsquare, $iota, $cnty, $cqz, $ituz, $record['station_callsign']); - } - - $table .= ""; - $table .= "".$record['station_callsign'].""; - $table .= "".$time_on.""; - $table .= "".$record['call'].""; - $table .= "".$record['mode'].""; - $table .= "".$record['qsl_rcvd'].""; - $table .= "".$qsl_date.""; - $table .= "".$state.""; - $table .= "".$qsl_gridsquare.""; - $table .= "".$iota.""; - $table .= "QSO Record: ".$status[0].""; - if($status[0] == "Found") { + $table .= ""; + $table .= "".$record['station_callsign'].""; + $table .= "".$time_on.""; + $table .= "".$record['call'].""; + $table .= "".$record['mode'].""; + $table .= "".$record['qsl_rcvd'].""; + $table .= "".$qsl_date.""; + $table .= "".$state.""; + $table .= "".$qsl_gridsquare.""; + $table .= "".$iota.""; + $table .= "QSO Record: ".$status[0].""; $table .= "LoTW Record: ".$lotw_status.""; - } else { + $table .= ""; + } else { + $table .= ""; + $table .= "".$record['station_callsign'].""; + $table .= "".$time_on.""; + $table .= "".$record['call'].""; + $table .= "".$record['mode'].""; + $table .= "".$record['qsl_rcvd'].""; $table .= ""; - } - $table .= ""; + $table .= ""; + $table .= ""; + $table .= ""; + $table .= "QSO Record: ".$status[0].""; + $table .= ""; + $table .= ""; + } } if ($table != "")