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 = ?" .