From 22cdb2c16bf8dac49dabadd0ad6abca036721ca1 Mon Sep 17 00:00:00 2001 From: phl0 Date: Wed, 15 Oct 2025 19:35:23 +0200 Subject: [PATCH] Cover empty user options --- application/controllers/Qso.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/controllers/Qso.php b/application/controllers/Qso.php index 4345ccbf7..a5277d0e6 100644 --- a/application/controllers/Qso.php +++ b/application/controllers/Qso.php @@ -221,7 +221,7 @@ class QSO extends CI_Controller { ->row(); // Decode JSON stored in option_value - $decoded = json_decode($row->option_value); + $decoded = json_decode($row->option_value ?? ''); // Make sure it's an object (in case it's null) $name = isset($decoded->name) ? $decoded->name : '';