From aa1efb5b53a6c99ef08e6320097273e634453c85 Mon Sep 17 00:00:00 2001 From: int2001 Date: Wed, 26 Jul 2023 07:05:50 +0000 Subject: [PATCH] Fixed handling of empty continent of spotter --- application/models/Dxcluster_model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/models/Dxcluster_model.php b/application/models/Dxcluster_model.php index 23108b58..fab9e24d 100644 --- a/application/models/Dxcluster_model.php +++ b/application/models/Dxcluster_model.php @@ -57,7 +57,7 @@ class Dxcluster_model extends CI_Model { $singlespot->dxcc_spotter=$dxcc; } if ( ($de != '') && ($de != 'Any') && (property_exists($singlespot->dxcc_spotter,'cont')) ){ // If we have a "de continent" and a filter-wish filter on that - if (strtolower($de) == strtolower($singlespot->dxcc_spotter->cont)) { + if (strtolower($de) == strtolower($singlespot->dxcc_spotter->cont ?? '')) { $singlespot->worked_call = ($this->logbook_model->check_if_callsign_worked_in_logbook($singlespot->spotted, $logbooks_locations_array, $singlespot->band) == 1); array_push($spotsout,$singlespot); }