diff --git a/application/libraries/Qrz.php b/application/libraries/Qrz.php index a5c237dcc..f2e640708 100644 --- a/application/libraries/Qrz.php +++ b/application/libraries/Qrz.php @@ -106,7 +106,12 @@ class Qrz { $data['ccode'] = (string)$xml->Callsign->ccode; $data['lat'] = (string)$xml->Callsign->lat; $data['lon'] = (string)$xml->Callsign->lon; - $data['grid'] = (string)$xml->Callsign->grid; + // qrz.com gives AA00aa if the user deleted his grid from the profile + if ((string)$xml->Callsign->grid == 'AA00aa') { + $data['grid'] = ''; + } else { + $data['grid'] = (string)$xml->Callsign->grid; + } $data['county'] = (string)$xml->Callsign->county; $data['fips'] = (string)$xml->Callsign->fips; $data['land'] = (string)$xml->Callsign->land;