diff --git a/mmdvmhost/lh.php b/mmdvmhost/lh.php index 5a8058ea..0945a468 100755 --- a/mmdvmhost/lh.php +++ b/mmdvmhost/lh.php @@ -18,13 +18,11 @@ $callsignLookupSvc = "RadioID"; } -// Safety net -if (($callsignLookupSvc != "RadioID") && ($callsignLookupSvc != "QRZ")) { $callsignLookupSvc = "RadioID"; } - // Setup the URL(s) $idLookupUrl = "https://database.radioid.net/database/view?id="; -if ($callsignLookupSvc == "RadioID") { $callsignLookupUrl = "https://database.radioid.net/database/view?callsign="; } +$callsignLookupUrl = "https://database.radioid.net/database/view?callsign="; if ($callsignLookupSvc == "QRZ") { $callsignLookupUrl = "https://www.qrz.com/db/"; } +if (substr($callsignLookupSvc, 0, 4) === "http") { $callsignLookupUrl = $callsignLookupSvc; } ?>