mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
When using fullname, the space was always inserted between first and last names even when no name was set. This now fixes issues #3 by triming the resultant string.
This commit is contained in:
@@ -81,6 +81,7 @@ class Qrz {
|
||||
} else {
|
||||
$data['name'] = (string)$xml->Callsign->fname;
|
||||
}
|
||||
$data['name'] = trim($data['name']);
|
||||
$data['gridsquare'] = (string)$xml->Callsign->grid;
|
||||
$data['city'] = (string)$xml->Callsign->addr2;
|
||||
$data['lat'] = (string)$xml->Callsign->lat;
|
||||
|
||||
Reference in New Issue
Block a user