From a47bef997b33d2ff9e8f5a4d7ae74f2cfb6dda58 Mon Sep 17 00:00:00 2001 From: Andreas <6977712+AndreasK79@users.noreply.github.com> Date: Mon, 9 Jan 2023 08:49:18 +0100 Subject: [PATCH] [PHP 8.1] Fixed another null into string error when saving QSO --- 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 5f7decf7..c2d5597e 100755 --- a/application/models/Logbook_model.php +++ b/application/models/Logbook_model.php @@ -212,7 +212,7 @@ class Logbook_model extends CI_Model { $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_POTA_REF'] = strtoupper(trim($station['station_pota'])); + $data['COL_MY_POTA_REF'] = $station['station_pota'] == null ? '' : strtoupper(trim($station['station_pota'])); $data['COL_STATION_CALLSIGN'] = strtoupper(trim($station['station_callsign'])); $data['COL_MY_DXCC'] = strtoupper(trim($station['station_dxcc']));