X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/71b3aa9cca3f9a3fd6a5f8e0e51c0b99463d7e66..aa9fff919900caafb276630b8ca4f1c1c598ab1c:/website/reverse.php diff --git a/website/reverse.php b/website/reverse.php index d1c554a4..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); - $aPlace = array_merge($aPlace, $aOutlineResult); + if ($aOutlineResult) + { + $aPlace = array_merge($aPlace, $aOutlineResult); + } } else {