From 739c4857866b516143c0866a41e587334a3900e8 Mon Sep 17 00:00:00 2001 From: int2001 Date: Mon, 7 Aug 2023 14:08:43 +0000 Subject: [PATCH] Update NULLs at LoTW, too --- application/models/Logbook_model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/models/Logbook_model.php b/application/models/Logbook_model.php index 0a9f9916..6c05d6a8 100755 --- a/application/models/Logbook_model.php +++ b/application/models/Logbook_model.php @@ -2725,7 +2725,7 @@ class Logbook_model extends CI_Model { $this->db->where('date_format(COL_TIME_ON, \'%Y-%m-%d %H:%i\') = "'.$datetime.'"'); $this->db->where('COL_CALL', $callsign); $this->db->where('COL_BAND', $band); - $this->db->where('COL_LOTW_QSL_RCVD !=', $qsl_status); // Prevent QSO from beeing updated twice (or more) + $this->db->where('ifnull(COL_LOTW_QSL_RCVD,\'\') !=', $qsl_status); // Prevent QSO from beeing updated twice (or more) $this->db->where('COL_STATION_CALLSIGN', $station_callsign); $this->db->update($this->config->item('table_name'), $data);