Check DXCC also for spotted plus a little errorhandling
这个提交包含在:
父节点
a5c6a5ce9d
当前提交
04d09b5783
共有 1 个文件被更改,包括 9 次插入 和 3 次删除
|
|
@ -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);
|
||||
|
|
|
|||
正在加载…
在新工单中引用