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:
Jeremy Brown
2020-11-13 13:43:33 -05:00
parent ace8de82bf
commit c896e5d909

View File

@@ -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;