Fixed handling of empty continent of spotter

pull/2325/head
int2001 2023-07-26 07:05:50 +00:00
rodzic 4717ca2252
commit aa1efb5b53
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: DFB1C13CD2DB037B
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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);
}