catch faulty dxcc response (breaks logic if debug mode is enabled)

This commit is contained in:
HB9HIL
2026-01-27 22:19:22 +01:00
parent f42eef4b7f
commit bbdc6814e9

View File

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