From 237eb0c2048e303f6e2eb262eb9ec1b7325019ca Mon Sep 17 00:00:00 2001 From: int2001 Date: Wed, 10 Jan 2024 20:09:42 +0000 Subject: [PATCH] Literal to Bind at get_entity --- application/models/Logbook_model.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/models/Logbook_model.php b/application/models/Logbook_model.php index ccf8af929..ecdfe8272 100755 --- a/application/models/Logbook_model.php +++ b/application/models/Logbook_model.php @@ -4194,8 +4194,8 @@ function lotw_last_qsl_date($user_id) { } public function get_entity($dxcc){ - $sql = "select name, cqz, lat, 'long' from dxcc_entities where adif = " . $dxcc; - $query = $this->db->query($sql); + $sql = "select name, cqz, lat, 'long' from dxcc_entities where adif = ?"; + $query = $this->db->query($sql,$dxcc); if ($query->result() > 0){ $row = $query->row_array();