From 29c760db565d360d48c688198379ae3f319edbd3 Mon Sep 17 00:00:00 2001 From: Corby Krick Date: Thu, 14 Feb 2013 20:07:24 -0600 Subject: [PATCH 1/2] Added a trim() to gridsquares to strip off any sort of new-line characters that might be hanging out at the end of the string. --- application/views/view_log/qso.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/views/view_log/qso.php b/application/views/view_log/qso.php index 4602aa14..ce21bc62 100644 --- a/application/views/view_log/qso.php +++ b/application/views/view_log/qso.php @@ -133,7 +133,7 @@ margin: 10px 0; COL_GRIDSQUARE != null) { - $stn_loc = $this->qra->qra2latlong(strtoupper($row->COL_GRIDSQUARE)); + $stn_loc = $this->qra->qra2latlong(trim(strtoupper($row->COL_GRIDSQUARE))); $lat = $stn_loc[0]; $lng = $stn_loc[1]; } else { From 1e548f4c26d3b58c9dba8f192bf556362a8cb07e Mon Sep 17 00:00:00 2001 From: Corby Krick Date: Thu, 14 Feb 2013 20:21:26 -0600 Subject: [PATCH 2/2] I've confirmed that case-sensitivity was not the root cause of the mapping issue -- it was carriage returns at the end of the string. When I tested by changing the gridsquare to upper-case in my database, the carriage return got removed. This gave us a false positive that it was a case issue. I have tested withwith XX11xx grid squares and have confirmed that case makes no difference. --- application/views/view_log/qso.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/views/view_log/qso.php b/application/views/view_log/qso.php index ce21bc62..0662935a 100644 --- a/application/views/view_log/qso.php +++ b/application/views/view_log/qso.php @@ -133,7 +133,7 @@ margin: 10px 0; COL_GRIDSQUARE != null) { - $stn_loc = $this->qra->qra2latlong(trim(strtoupper($row->COL_GRIDSQUARE))); + $stn_loc = $this->qra->qra2latlong(trim($row->COL_GRIDSQUARE)); $lat = $stn_loc[0]; $lng = $stn_loc[1]; } else {