From 06a29f4743b82a7d2d14f7ba8998d791ed5d5424 Mon Sep 17 00:00:00 2001 From: Andreas <6977712+AndreasK79@users.noreply.github.com> Date: Sat, 18 Dec 2021 17:50:19 +0100 Subject: [PATCH] [LoTW] Bugfix for sync when COL_LOTW_QSLRDATE is not set --- application/models/Logbook_model.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/application/models/Logbook_model.php b/application/models/Logbook_model.php index 3879173e..5de834b6 100755 --- a/application/models/Logbook_model.php +++ b/application/models/Logbook_model.php @@ -1672,7 +1672,11 @@ class Logbook_model extends CI_Model { $query = $this->db->get($this->config->item('table_name')); $row = $query->row(); - return $row->COL_LOTW_QSLRDATE; + if (isset($row)) { + return $row->COL_LOTW_QSLRDATE; + } + + return '1900-01-01 00:00:00.000'; } //////////////////////////////