From a4d023d2255a03c1351154fe248fd611f803ce31 Mon Sep 17 00:00:00 2001 From: Peter Goodhall Date: Sun, 1 Jan 2012 16:41:22 +0000 Subject: [PATCH] Callbook: if gridsquare returned is jj0aa dont display it --- application/libraries/callbytxt.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/application/libraries/callbytxt.php b/application/libraries/callbytxt.php index 3fd7b841..163f6fd7 100644 --- a/application/libraries/callbytxt.php +++ b/application/libraries/callbytxt.php @@ -17,7 +17,12 @@ class Callbytxt { if(isset($json_output)) { $data['callsign'] = $json_output->calls->callsign; $data['name'] = ucfirst(strtolower((current(explode(' ', $json_output->calls->first_name))))); - $data['gridsquare'] = ucfirst($json_output->calls->gridsquare); + + if(strtoupper($json_output->calls->gridsquare) == "JJ00AA") { + $data['gridsquare'] = ""; + } else { + $data['gridsquare'] = ucfirst($json_output->calls->gridsquare); + } $data['city'] = ucfirst(strtolower(($json_output->calls->city)));