diff --git a/application/models/Logbookadvanced_model.php b/application/models/Logbookadvanced_model.php index dafac4d98..435467741 100644 --- a/application/models/Logbookadvanced_model.php +++ b/application/models/Logbookadvanced_model.php @@ -1332,6 +1332,10 @@ class Logbookadvanced_model extends CI_Model { $skipqrzupdate = true; } else { + if ($value == "null") { + $value = 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').".".$column . " = ? WHERE " . $this->config->item('table_name').".col_primary_key in ? and station_profile.user_id = ?"; $query = $this->db->query($sql, array($value, json_decode($ids, true), $this->session->userdata('user_id')));