Check DXCC also for spotted plus a little errorhandling

这个提交包含在:
int2001 2023-07-22 06:00:02 +00:00
父节点 a5c6a5ce9d
当前提交 04d09b5783

查看文件

@ -4025,9 +4025,15 @@ class Logbook_model extends CI_Model {
$minutes += $spotage->i;
$singlespot->age=$minutes;
if ($minutes<=$maxage) {
$dxcc=$this->dxcc_lookup($singlespot->spotter,date('Ymd', time()));
$singlespot->dxcc_spotter=$dxcc;
if ($de != '') {
if (!(property_exists($singlespot,'dxcc_spotted'))) { // Check if we already have dxcc of spotted
$dxcc=$this->dxcc_lookup($singlespot->spotted,date('Ymd', time()));
$singlespot->dxcc_spotted=$dxcc;
}
if (!(property_exists($singlespot,'dxcc_spotter'))) { // Check if we already have dxcc of spotter
$dxcc=$this->dxcc_lookup($singlespot->spotter,date('Ymd', time()));
$singlespot->dxcc_spotter=$dxcc;
}
if ( ($de != '') && (array_key_exists('cont',$dxcc)) ){
if ($de == $dxcc['cont']) {
$singlespot->worked_call = ($this->check_if_callsign_worked_in_logbook($singlespot->spotted, $logbooks_locations_array, $singlespot->band) == 1);
array_push($spotsout,$singlespot);