Fix null assignment for frequency value

Refactor frequency value assignment to handle null case.
This commit is contained in:
Joerg (DJ7NT)
2026-03-21 19:07:13 +01:00
committed by GitHub
parent c2c9c906c2
commit fe22617ae3

View File

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