From fe22617ae3fdd208bf7a6c54f57856f577ff3ed1 Mon Sep 17 00:00:00 2001 From: "Joerg (DJ7NT)" Date: Sat, 21 Mar 2026 19:07:13 +0100 Subject: [PATCH] Fix null assignment for frequency value Refactor frequency value assignment to handle null case. --- application/models/Logbookadvanced_model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/models/Logbookadvanced_model.php b/application/models/Logbookadvanced_model.php index 3678e2b95..477ab9837 100644 --- a/application/models/Logbookadvanced_model.php +++ b/application/models/Logbookadvanced_model.php @@ -1191,7 +1191,7 @@ class Logbookadvanced_model extends CI_Model { if ($value == '') return; - $value2 == '' ? null : $value2; + if (trim($value2 ?? '') == '') { $value2=null; } $sql = "UPDATE ".$this->config->item('table_name')." JOIN station_profile ON ". $this->config->item('table_name').".station_id = station_profile.station_id" . " SET " . $this->config->item('table_name').".COL_FREQ = ?" .