From 31dcf8de7035fb783149c052d29eae28e6687f61 Mon Sep 17 00:00:00 2001 From: int2001 Date: Mon, 1 Jul 2024 15:17:22 +0000 Subject: [PATCH] Added COL_HRDLOG_QSO_UPLOAD_STATUS != 'Y' to the Update-query --- application/models/Hrdlog_model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/models/Hrdlog_model.php b/application/models/Hrdlog_model.php index 246a84580..6e44ea47b 100644 --- a/application/models/Hrdlog_model.php +++ b/application/models/Hrdlog_model.php @@ -107,7 +107,7 @@ class Hrdlog_model extends CI_Model { foreach ($qsos->result() as $qso) { $mark_them[]=$qso->COL_PRIMARY_KEY; } - $sql="update ".$this->config->item('table_name')." set COL_HRDLOG_QSO_UPLOAD_DATE='".date("Y-m-d H:i:s", strtotime("now"))."', COL_HRDLOG_QSO_UPLOAD_STATUS='Y' where col_primary_key in (".implode(',', array_values($mark_them)).") and station_id=".$station_id; + $sql="update ".$this->config->item('table_name')." set COL_HRDLOG_QSO_UPLOAD_DATE='".date("Y-m-d H:i:s", strtotime("now"))."', COL_HRDLOG_QSO_UPLOAD_STATUS='Y' where COL_HRDLOG_QSO_UPLOAD_STATUS != 'Y' and col_primary_key in (".implode(',', array_values($mark_them)).") and station_id=".$station_id; $query = $this->db->query($sql); return $this->db->affected_rows(); }