mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Fixes an issue, when a spot doesn't contain continent
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user