HamQTH Lookup for search

This commit is contained in:
phl0
2023-11-15 17:11:45 +01:00
parent 1a524b8bb2
commit e8bfe6ed7f
2 changed files with 27 additions and 2 deletions

View File

@@ -71,7 +71,7 @@ class Hamqth {
// Create XML object
$xml = simplexml_load_string($xml);
if (empty($xml)) return;
if (!empty($xml->session->error)) return $data['error'] = $xml->session->error;
// Return Required Fields
$data['callsign'] = (string)$xml->search->callsign;