From bbdc6814e92001c2177d9d991d9f1eb366ba71d2 Mon Sep 17 00:00:00 2001 From: HB9HIL Date: Tue, 27 Jan 2026 22:19:22 +0100 Subject: [PATCH] catch faulty dxcc response (breaks logic if debug mode is enabled) --- 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 50a1108c5..78a6c99fb 100644 --- a/application/models/Logbook_model.php +++ b/application/models/Logbook_model.php @@ -141,7 +141,7 @@ class Logbook_model extends CI_Model { $dxcc = $dxccobj->dxcc_lookup(strtoupper(trim($callsign)), $datetime); } - $country = $qso_data['country'] ?? ucwords(strtolower($dxcc[1]), "- (/"); + $country = $qso_data['country'] ?? ucwords(strtolower($dxcc[1] ?? ''), "- (/"); $cqz = $qso_data['cqz'] ?? ($dxcc[2] ?? NULL); $dxcc_id = $qso_data['dxcc_id'] ?? ($dxcc[0] ?? NULL); $continent = $qso_data['continent'] ?? ($dxcc[3] ?? NULL);