From 064075980bccc6ce965a0e009421771781269cf5 Mon Sep 17 00:00:00 2001 From: Jeremy Brown Date: Fri, 13 Nov 2020 08:02:17 -0500 Subject: [PATCH] Check to see if dxcc is set on import to avoid errors --- application/models/Logbook_model.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/application/models/Logbook_model.php b/application/models/Logbook_model.php index 6092fddb..c89e2807 100755 --- a/application/models/Logbook_model.php +++ b/application/models/Logbook_model.php @@ -1538,7 +1538,9 @@ class Logbook_model extends CI_Model { if(isset($record['country'])) { $country = $record['country']; } else { - $country = ucwords(strtolower($dxcc[1])); + if (isset($dxcc[1])) { + $country = ucwords(strtolower($dxcc[1])); + } } // RST recevied