mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
fixed rare case if only prefix is in XML-Data
This commit is contained in:
@@ -38,7 +38,7 @@ class Dxcalendar extends CI_Controller {
|
||||
$call = (string) $descsplit[3];
|
||||
$dxped->call = trim(str_replace('--', '', $call));
|
||||
|
||||
$chk_dxcc=$this->logbook_model->dxcc_lookup($dxped->call,$dxped->dates[2]->format('Y-m-d'));
|
||||
$chk_dxcc=$this->logbook_model->dxcc_lookup($dxped->call."X",$dxped->dates[2]->format('Y-m-d')); // X because sometimes only the pref is in XML
|
||||
if ($chk_dxcc['adif'] ?? '' != '') {
|
||||
$chk_dxcc_val=$chk_dxcc['adif'];
|
||||
$dxped->no_dxcc=false;
|
||||
|
||||
Reference in New Issue
Block a user