From fe2ee9d6594fa9318b63d34ff608f3ffa242f2a5 Mon Sep 17 00:00:00 2001 From: electricEngineer <58144377+electricEngineer@users.noreply.github.com> Date: Wed, 7 Feb 2024 12:44:44 +0100 Subject: [PATCH] fixed error message while logging that trim() was called with argument NULL --- application/models/Logbook_model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/models/Logbook_model.php b/application/models/Logbook_model.php index 9c19aa94..0f3ccee9 100755 --- a/application/models/Logbook_model.php +++ b/application/models/Logbook_model.php @@ -289,7 +289,7 @@ class Logbook_model extends CI_Model $data['COL_MY_CITY'] = strtoupper(trim($station['station_city'])); $data['COL_MY_IOTA'] = strtoupper(trim($station['station_iota'])); $data['COL_MY_SOTA_REF'] = strtoupper(trim($station['station_sota'])); - $data['COL_MY_WWFF_REF'] = strtoupper(trim($station['station_wwff'])); + $data['COL_MY_WWFF_REF'] = $station['station_wwff'] ? strtoupper(trim($station['station_wwff'])) : ''; $data['COL_MY_POTA_REF'] = $station['station_pota'] == null ? '' : strtoupper(trim($station['station_pota'])); $data['COL_STATION_CALLSIGN'] = strtoupper(trim($station['station_callsign']));