X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/6be2077d922098d65f069557dea55542c15a5c98..1bee151fe3ccfd21df1d809392d6eb52ce7925cb:/lib-php/PlaceLookup.php diff --git a/lib-php/PlaceLookup.php b/lib-php/PlaceLookup.php index 715f1ced..33156537 100644 --- a/lib-php/PlaceLookup.php +++ b/lib-php/PlaceLookup.php @@ -445,7 +445,7 @@ class PlaceLookup if ($this->bExtraTags) { if ($aPlace['extra']) { - $aPlace['sExtraTags'] = json_decode($aPlace['extra']); + $aPlace['sExtraTags'] = json_decode($aPlace['extra'], true); } else { $aPlace['sExtraTags'] = (object) array(); } @@ -482,7 +482,7 @@ class PlaceLookup return (object) array(); } - $aFullNames = json_decode($sNames); + $aFullNames = json_decode($sNames, true); $aNames = array(); foreach ($aFullNames as $sKey => $sValue) {