[ADIF import] Fix some minor annoyances

This commit is contained in:
Andreas Kristiansen
2025-12-22 17:18:54 +01:00
parent ef32b9c30a
commit 10782db68b
2 changed files with 4 additions and 2 deletions

View File

@@ -385,7 +385,9 @@ class adif extends CI_Controller {
while($record = $this->adif_parser->get_record()) {
// Handle slashed zeros
$record['call'] = str_replace('Ø', "0", $record['call']);
if (isset($record['call'])) {
$record['call'] = str_replace('Ø', "0", $record['call']);
}
if (($record['operator'] ?? '') != '') {
$record['operator'] = str_replace('Ø', "0", $record['operator']);
}