From: Brian Quinion Date: Thu, 20 Dec 2012 01:28:10 +0000 (+0000) Subject: wrong variable name in json output X-Git-Tag: v2.2.0~146 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/ae7f676b7380e1d73aeabff09ac5696802c8624f?ds=inline wrong variable name in json output --- 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;