From 8ad06daf2bd77ff30e48017d7e6c12861925eace Mon Sep 17 00:00:00 2001 From: Andreas <6977712+AndreasK79@users.noreply.github.com> Date: Fri, 10 Feb 2023 09:45:19 +0100 Subject: [PATCH] [PHP 8.1] Fix for passing null to parameter --- application/models/Logbook_model.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/models/Logbook_model.php b/application/models/Logbook_model.php index 5757b59a..ac73805d 100755 --- a/application/models/Logbook_model.php +++ b/application/models/Logbook_model.php @@ -175,8 +175,8 @@ class Logbook_model extends CI_Model { 'COL_TX_PWR' => $tx_power, 'COL_STX' => $stx, 'COL_SRX' => $srx, - 'COL_STX_STRING' => strtoupper(trim($stx_string)), - 'COL_SRX_STRING' => strtoupper(trim($srx_string)), + 'COL_STX_STRING' => $stx_string == null ? '' : strtoupper(trim($stx_string)), + 'COL_SRX_STRING' => $srx_string == null ? '' : strtoupper(trim($srx_string)), 'COL_CONTEST_ID' => $contestid, 'COL_NR_BURSTS' => null, 'COL_NR_PINGS' => null,