From 73bdf8666c726e6f7b0d93d2c79ed054e1c4d333 Mon Sep 17 00:00:00 2001 From: int2001 Date: Sat, 17 Feb 2024 18:05:38 +0000 Subject: [PATCH] fixed rare case if only prefix is in XML-Data --- application/controllers/Dxcalendar.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/controllers/Dxcalendar.php b/application/controllers/Dxcalendar.php index 48a33fe6f..a188ee6a7 100644 --- a/application/controllers/Dxcalendar.php +++ b/application/controllers/Dxcalendar.php @@ -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;