From 9ca408e8881dd7610b09f217be8a0a70714d0ddd Mon Sep 17 00:00:00 2001 From: Peter Goodhall Date: Thu, 20 Jun 2019 15:26:36 +0100 Subject: [PATCH] More states of data in the table --- application/controllers/Clublog.php | 2 ++ application/models/Logbook_model.php | 1 + 2 files changed, 3 insertions(+) diff --git a/application/controllers/Clublog.php b/application/controllers/Clublog.php index 182c0804a..e4e62032e 100644 --- a/application/controllers/Clublog.php +++ b/application/controllers/Clublog.php @@ -34,6 +34,8 @@ class Clublog extends CI_Controller { $data['qsos'] = $this->logbook_model->get_clublog_qsos(); + print_r($data['qsos']) + if($data['qsos']->num_rows()){ // Create ADIF File of contacts not uploaded to Clublog $string = $this->load->view('adif/data/clublog', $data, TRUE); diff --git a/application/models/Logbook_model.php b/application/models/Logbook_model.php index 3b1b430b8..8b45115d2 100755 --- a/application/models/Logbook_model.php +++ b/application/models/Logbook_model.php @@ -444,6 +444,7 @@ class Logbook_model extends CI_Model { function get_clublog_qsos(){ $this->db->where("COL_CLUBLOG_QSO_UPLOAD_STATUS", null); + $this->db->or_where("COL_CLUBLOG_QSO_UPLOAD_STATUS", ""); $this->db->or_where("COL_CLUBLOG_QSO_UPLOAD_STATUS", "N"); $query = $this->db->get($this->config->item('table_name'));