Pass error message given by qrz.com to the user

This commit is contained in:
phl0
2023-11-11 21:30:45 +01:00
parent ba171a586e
commit 87437ca1fb
3 changed files with 14 additions and 5 deletions

View File

@@ -71,7 +71,7 @@ class Qrz {
// 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->Callsign->call;