mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 02:14:13 +00:00
Fix null assignment for frequency value
Refactor frequency value assignment to handle null case.
This commit is contained in:
@@ -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 = ?" .
|
||||
|
||||
Reference in New Issue
Block a user