Merge pull request #218 from int2001/submode_lbl_fix

Fix printing empty submode
This commit is contained in:
Joerg (DJ7NT)
2024-03-11 16:41:58 +01:00
committed by GitHub
2 changed files with 4 additions and 1 deletions

View File

@@ -281,7 +281,7 @@ class Labels extends CI_Controller {
$qso_data[] = [
'time' => $qso->COL_TIME_ON,
'band' => $qso->COL_BAND,
'mode' => ($qso->COL_SUBMODE ?? $qso->COL_MODE),
'mode' => (($qso->COL_SUBMODE ?? '') == '') ? $qso->COL_MODE : $qso->COL_SUBMODE,
'rst' => $qso->COL_RST_SENT,
'mygrid' => $qso->station_gridsquare,
'via' => $qso->COL_QSL_VIA,

View File

@@ -3345,6 +3345,9 @@ function lotw_last_qsl_date($user_id) {
$input_submode = $submode;
}
$input_submode = (($input_submode ?? '') == '') ? null : $input_submode; // Make Sure submode is NULL if empty
$input_mode = (($input_mode ?? '') == '') ? null : $input_mode; // Make Sure mode is NULL if empty
// Check if QSO is already in the database
if ($skipDuplicate != NULL) {