X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/991bd0004a400c84c2a63053eb6671a6442204f8..e94b667e16177916dc34d790df475a69fe01a7d9:/website/reverse.php diff --git a/website/reverse.php b/website/reverse.php index ca823d3c..fd1f5c27 100755 --- a/website/reverse.php +++ b/website/reverse.php @@ -1,7 +1,8 @@ setPolygonSimplificationThreshold($fThreshold); $fRadius = $fDiameter = getResultDiameter($aPlace); - $aOutlineResult = $oPlaceLookup->getOutlines($aPlace['place_id'],$aPlace['lon'],$aPlace['lat'],$fRadius); + $aOutlineResult = $oPlaceLookup->getOutlines($aPlace['place_id'], $aPlace['lon'], $aPlace['lat'], $fRadius); - foreach($aOutlineResult as $k => $v) + if ($aOutlineResult) { - $aPlace[$k] = $v; + $aPlace = array_merge($aPlace, $aOutlineResult); } - } else {