Empty callbook source if all lookups fail

This commit is contained in:
phl0
2026-01-26 11:55:02 +01:00
parent 0bd1f7b1ca
commit 08a3b39dba

View File

@@ -221,7 +221,7 @@ class Logbook extends CI_Controller {
$return['latlng'] = $this->qralatlng($return['callsign_qra']);
$return['bearing'] = $this->bearing($return['callsign_qra'], $measurement_base, $station_id);
}
$return['callbook_source'] = $callbook['source'];
$return['callbook_source'] = $callbook['source'] ?? '';
echo json_encode($return, JSON_PRETTY_PRINT);