From 12fc64bdb3b8139f9088d269400a6aa620653ff7 Mon Sep 17 00:00:00 2001 From: int2001 Date: Sun, 5 Oct 2025 07:59:17 +0000 Subject: [PATCH] Catch b4 upload --- application/models/Logbook_model.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/application/models/Logbook_model.php b/application/models/Logbook_model.php index 690bfc2ab..b06224204 100644 --- a/application/models/Logbook_model.php +++ b/application/models/Logbook_model.php @@ -3994,16 +3994,16 @@ class Logbook_model extends CI_Model { $custom_errors['errormessage'] .= $one_error['error']; } else { // No Errors / QSO doesn't exist so far array_push($a_qsos, $one_error['raw_qso'] ?? ''); - if (isset($record['prop_mode']) && $record['prop_mode'] == 'SAT' && $amsat_status_upload) { + if (isset($record['prop_mode']) && (($record['prop_mode'] ?? '')== 'SAT') && (($record['sat_name'] ?? '') != '') && $amsat_status_upload) { $amsat_qsodate = strtotime(($record['qso_date'] ?? '1970-01-01') . ' ' . ($record['time_on'] ?? '00:00:00')); $date_diff = $today - $amsat_qsodate; if ($date_diff >= -300 && $date_diff <= 518400) { // Five minutes grace time to the future and max 6 days back $data = array( 'COL_TIME_ON' => date('Y-m-d', strtotime($record['qso_date'])) . " " . date('H:i:s', strtotime($record['time_on'])), 'COL_SAT_NAME' => $record['sat_name'] ?? '', - 'COL_BAND' => $record['band'], + 'COL_BAND' => $record['band'] ?? '', 'COL_BAND_RX' => $record['band_rx'] ?? '', - 'COL_MODE' => $record['mode'], + 'COL_MODE' => $record['mode'] ?? '', 'COL_STATION_CALLSIGN' => trim($station_profile->station_callsign), 'COL_MY_GRIDSQUARE' => $station_profile->station_gridsquare, );