From da9eb5fc4d21a9b98f99723600c036e34f53446f Mon Sep 17 00:00:00 2001 From: Peter Goodhall Date: Sun, 6 Oct 2019 15:40:33 +0100 Subject: [PATCH] Include QSOs where COL_EQSL_QSL_SENT is null when uploading to eQSL --- application/models/Logbook_model.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/application/models/Logbook_model.php b/application/models/Logbook_model.php index 6ed40962..8de74e19 100755 --- a/application/models/Logbook_model.php +++ b/application/models/Logbook_model.php @@ -978,8 +978,9 @@ class Logbook_model extends CI_Model { $this->db->from('station_profile'); $this->db->join($this->config->item('table_name'),'station_profile.station_id = '.$this->config->item('table_name').'.station_id','left'); $this->db->where('station_profile.eqslqthnickname !=', ''); - $this->db->where($this->config->item('table_name').'.COL_EQSL_QSL_SENT !=', 'Y'); - $this->db->where($this->config->item('table_name').'.COL_EQSL_QSL_SENT !=', 'I'); + $this->db->or_where($this->config->item('table_name').'.COL_EQSL_QSL_SENT !=', 'Y'); + $this->db->or_where($this->config->item('table_name').'.COL_EQSL_QSL_SENT !=', 'I'); + $this->db->or_where(array($this->config->item('table_name').'.COL_EQSL_QSL_SENT' => NULL)); return $this->db->get(); }