From 62b5f6366c7820ed4371f4f0f537f07e2d448518 Mon Sep 17 00:00:00 2001 From: int2001 Date: Sun, 7 Dec 2025 08:45:44 +0000 Subject: [PATCH] Fixes an issue, when a spot doesn't contain continent --- 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 aaccd94d6..9c7f3fb77 100644 --- a/application/models/Logbook_model.php +++ b/application/models/Logbook_model.php @@ -2791,13 +2791,13 @@ class Logbook_model extends CI_Model { foreach ($spots as $spot) { // Validate spot has required properties (must be non-empty) - if (empty($spot->spotted) || empty($spot->dxcc_spotted->dxcc_id) || empty($spot->dxcc_spotted->cont) || empty($spot->band) || empty($spot->mode)) { + if (empty($spot->spotted) || empty($spot->dxcc_spotted->dxcc_id) || empty($spot->band) || empty($spot->mode)) { continue; } $callsign = $spot->spotted; $dxcc = $spot->dxcc_spotted->dxcc_id; - $cont = $spot->dxcc_spotted->cont; + $cont = $spot->dxcc_spotted->cont ?? ''; // Collect unique callsigns/dxccs/continents - query once per unique value $callsigns[$callsign] = true;