From bc44d5d48589cbf3eefdedf8a2ec79fbd5d2796e Mon Sep 17 00:00:00 2001 From: Peter Goodhall Date: Thu, 16 May 2019 23:01:57 +0100 Subject: [PATCH] Fixed country bug --- application/models/Logbook_model.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/application/models/Logbook_model.php b/application/models/Logbook_model.php index 763b9578..a93539e6 100755 --- a/application/models/Logbook_model.php +++ b/application/models/Logbook_model.php @@ -882,6 +882,8 @@ class Logbook_model extends CI_Model { $cq_zone = ""; } + exit; + $this->db->where('COL_CALL', $record['call']); $this->db->where('COL_TIME_ON', $time_on); $check = $this->db->get($this->config->item('table_name')); @@ -914,7 +916,7 @@ class Logbook_model extends CI_Model { 'COL_CONT' => (!empty($record['cont'])) ? $record['cont'] : '', 'COL_CONTACTED_OP' => (!empty($record['contacted_op'])) ? $record['contacted_op'] : '', 'COL_CONTEST_ID' => (!empty($record['contest_id'])) ? $record['contest_id'] : '', - 'COL_COUNTRY' => (!empty($record['country'])) ? $record['country'] : '', + 'COL_COUNTRY' => $country, 'COL_COUNTRY_INTL' => (!empty($record['country_intl'])) ? $record['country_intl'] : '', 'COL_CQZ' => $cq_zone, 'COL_CREDIT_GRANTED' => (!empty($record['credit_granted'])) ? $record['credit_granted'] : '',