diff --git a/application/models/Logbook_model.php b/application/models/Logbook_model.php index 50a1108c5..78a6c99fb 100644 --- a/application/models/Logbook_model.php +++ b/application/models/Logbook_model.php @@ -141,7 +141,7 @@ class Logbook_model extends CI_Model { $dxcc = $dxccobj->dxcc_lookup(strtoupper(trim($callsign)), $datetime); } - $country = $qso_data['country'] ?? ucwords(strtolower($dxcc[1]), "- (/"); + $country = $qso_data['country'] ?? ucwords(strtolower($dxcc[1] ?? ''), "- (/"); $cqz = $qso_data['cqz'] ?? ($dxcc[2] ?? NULL); $dxcc_id = $qso_data['dxcc_id'] ?? ($dxcc[0] ?? NULL); $continent = $qso_data['continent'] ?? ($dxcc[3] ?? NULL);