From c896e5d909d0edd9a4d029a131919b2b61de4aad Mon Sep 17 00:00:00 2001 From: Jeremy Brown Date: Fri, 13 Nov 2020 13:43:33 -0500 Subject: [PATCH] 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. --- application/libraries/Qrz.php | 1 + 1 file changed, 1 insertion(+) diff --git a/application/libraries/Qrz.php b/application/libraries/Qrz.php index f855706ae..42a280be8 100755 --- a/application/libraries/Qrz.php +++ b/application/libraries/Qrz.php @@ -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;