From ae7f676b7380e1d73aeabff09ac5696802c8624f Mon Sep 17 00:00:00 2001 From: Brian Quinion Date: Thu, 20 Dec 2012 01:28:10 +0000 Subject: [PATCH 1/1] wrong variable name in json output --- lib/template/search-json.php | 16 ++++++++-------- lib/template/search-jsonv2.php | 16 ++++++++-------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/lib/template/search-json.php b/lib/template/search-json.php index 4b3b279d..542e37af 100644 --- a/lib/template/search-json.php +++ b/lib/template/search-json.php @@ -51,24 +51,24 @@ $aPlace['address'] = $aPointDetails['address']; } - if (isset($aResult['asgeojson'])) + if (isset($aPointDetails['asgeojson'])) { - $aPlace['geojson'] = json_decode($aResult['asgeojson']); + $aPlace['geojson'] = json_decode($aPointDetails['asgeojson']); } - if (isset($aResult['assvg'])) + if (isset($aPointDetails['assvg'])) { - $aPlace['svg'] = $aResult['assvg']; + $aPlace['svg'] = $aPointDetails['assvg']; } - if (isset($aResult['astext'])) + if (isset($aPointDetails['astext'])) { - $aPlace['geotext'] = $aResult['astext']; + $aPlace['geotext'] = $aPointDetails['astext']; } - if (isset($aResult['askml'])) + if (isset($aPointDetails['askml'])) { - $aPlace['geokml'] = $aResult['askml']; + $aPlace['geokml'] = $aPointDetails['askml']; } $aFilteredPlaces[] = $aPlace; diff --git a/lib/template/search-jsonv2.php b/lib/template/search-jsonv2.php index e1552a15..1c2a04dd 100644 --- a/lib/template/search-jsonv2.php +++ b/lib/template/search-jsonv2.php @@ -50,24 +50,24 @@ $aPlace['address'] = $aPointDetails['address']; } - if (isset($aResult['asgeojson'])) + if (isset($aPointDetails['asgeojson'])) { - $aPlace['geojson'] = json_decode($aResult['asgeojson']); + $aPlace['geojson'] = json_decode($aPointDetails['asgeojson']); } - if (isset($aResult['assvg'])) + if (isset($aPointDetails['assvg'])) { - $aPlace['svg'] = $aResult['assvg']; + $aPlace['svg'] = $aPointDetails['assvg']; } - if (isset($aResult['astext'])) + if (isset($aPointDetails['astext'])) { - $aPlace['geotext'] = $aResult['astext']; + $aPlace['geotext'] = $aPointDetails['astext']; } - if (isset($aResult['askml'])) + if (isset($aPointDetails['askml'])) { - $aPlace['geokml'] = $aResult['askml']; + $aPlace['geokml'] = $aPointDetails['askml']; } $aFilteredPlaces[] = $aPlace; -- 2.39.5