mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Merge pull request #218 from int2001/submode_lbl_fix
Fix printing empty submode
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user