From e843ef76baec77bde8eeb523b7689b28b4764a09 Mon Sep 17 00:00:00 2001 From: Peter Goodhall Date: Wed, 18 Nov 2020 22:18:58 +0000 Subject: [PATCH] Fixed issue where edit wasn't functioning correctly --- application/models/Logbook_model.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/application/models/Logbook_model.php b/application/models/Logbook_model.php index 91eab056..294a5bfd 100755 --- a/application/models/Logbook_model.php +++ b/application/models/Logbook_model.php @@ -563,7 +563,6 @@ class Logbook_model extends CI_Model { /* Edit QSO */ function edit() { - $entity = $this->get_entity($this->input->post('dxcc_id')); $country = $entity['name']; @@ -2091,7 +2090,7 @@ class Logbook_model extends CI_Model { } public function get_entity($dxcc){ - $sql = "select name, cqz, lat, `long` from dxcc_entities where adif = " . $dxcc; + $sql = "select name, cqz, lat, 'long' from dxcc_entities where adif = " . $dxcc; $query = $this->db->query($sql); if ($query->result() > 0){