mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Use name is ename is not set
This commit is contained in:
@@ -89,10 +89,7 @@ class Qrzru {
|
||||
// Return Required Fields
|
||||
$data['callsign'] = (string)$xml->Callsign->call;
|
||||
|
||||
$data['name'] = (string)$xml->Callsign->ename;
|
||||
|
||||
// we always give back the name, no matter if reduced data or not
|
||||
$data['name'] = trim($data['name']);
|
||||
$data['name'] = trim((string)($xml->Callsign->ename ?: $xml->Callsign->name) . ' ' . (string)($xml->Callsign->esurname ?: $xml->Callsign->surname));
|
||||
|
||||
if ($reduced == false) {
|
||||
$data['city'] = (string)$xml->Callsign->city;
|
||||
|
||||
Reference in New Issue
Block a user