Merge pull request #2325 from int2001/bandmap_empty_de_fix

Fixed handling of empty continent of spotter
这个提交包含在:
Peter Goodhall 2023-07-26 11:07:50 +01:00 提交者 GitHub
当前提交 5d66553801
找不到此签名对应的密钥
GPG 密钥 ID: 4AEE18F83AFDEB23

查看文件

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