From f21efc03cdd316f710484119b62e725b4418a85f Mon Sep 17 00:00:00 2001 From: abarrau Date: Sat, 23 Sep 2023 11:36:13 +0200 Subject: [PATCH] add test diff 0, for update distance --- application/models/Logbook_model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/models/Logbook_model.php b/application/models/Logbook_model.php index 277c4baa..7d75d0e6 100755 --- a/application/models/Logbook_model.php +++ b/application/models/Logbook_model.php @@ -3943,7 +3943,7 @@ function check_if_callsign_worked_in_logbook($callsign, $StationLocationsArray = public function update_distances(){ $this->db->select("COL_PRIMARY_KEY, COL_GRIDSQUARE, station_gridsquare"); $this->db->join('station_profile', 'station_profile.station_id = '.$this->config->item('table_name').'.station_id'); - $this->db->where("COL_DISTANCE is NULL"); + $this->db->where("((COL_DISTANCE is NULL) or (COL_DISTANCE = 0))"); $this->db->where("COL_GRIDSQUARE is NOT NULL"); $this->db->where("COL_GRIDSQUARE != ''"); $this->db->trans_start();