From 5707809d0abb7e43287b3a2e91b7df3a24fe8740 Mon Sep 17 00:00:00 2001 From: int2001 Date: Fri, 17 Nov 2023 07:20:02 +0000 Subject: [PATCH 1/2] Fixing Error when "lastupload" isn't set --- application/views/view_log/partial/log_ajax.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/views/view_log/partial/log_ajax.php b/application/views/view_log/partial/log_ajax.php index cf246c0b..fb99eed8 100644 --- a/application/views/view_log/partial/log_ajax.php +++ b/application/views/view_log/partial/log_ajax.php @@ -102,7 +102,7 @@ function echoQrbCalcLink($mygrid, $grid, $vucc) { COL_CALL)); ?> lastupload) { + if (isset($row->lastupload) && ($row->lastupload)) { $lotw_hint = ''; $diff = (time() - strtotime($row->lastupload)) / 86400; if ($diff > 365) { From 5cfa27c4d9b52133ed5769efc2e838f44c6285b1 Mon Sep 17 00:00:00 2001 From: int2001 Date: Fri, 17 Nov 2023 07:26:31 +0000 Subject: [PATCH 2/2] Added left-oouter join on lotw_users to fetch last-lotw-up --- application/models/Logbook_model.php | 1 + 1 file changed, 1 insertion(+) diff --git a/application/models/Logbook_model.php b/application/models/Logbook_model.php index 34ec1c34..2e399f4e 100755 --- a/application/models/Logbook_model.php +++ b/application/models/Logbook_model.php @@ -500,6 +500,7 @@ class Logbook_model extends CI_Model { $this->db->join('station_profile', 'station_profile.station_id = '.$this->config->item('table_name').'.station_id'); $this->db->join('dxcc_entities', 'dxcc_entities.adif = '.$this->config->item('table_name').'.COL_DXCC', 'left outer'); + $this->db->join('lotw_users', 'lotw_users.callsign = '.$this->config->item('table_name').'.col_call', 'left outer'); $this->db->where('COL_CALL', $call); if ($band != 'All') { if ($band == 'SAT') {