fixed rare case if only prefix is in XML-Data

This commit is contained in:
int2001
2024-02-17 18:05:38 +00:00
parent a66339f8b1
commit 73bdf8666c

View File

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