mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-16 15:47:58 +00:00
second argument of array_merge can be empty
This commit is contained in:
@@ -1647,8 +1647,11 @@
|
||||
$oPlaceLookup->setPolygonSimplificationThreshold($this->fPolygonSimplificationThreshold);
|
||||
|
||||
$aOutlineResult = $oPlaceLookup->getOutlines($aResult['place_id'], $aResult['lon'], $aResult['lat'], $fDiameter/2);
|
||||
$aResult = array_merge($aResult, $aOutlineResult);
|
||||
|
||||
if ($aOutlineResult)
|
||||
{
|
||||
$aResult = array_merge($aResult, $aOutlineResult);
|
||||
}
|
||||
|
||||
if ($aResult['extra_place'] == 'city')
|
||||
{
|
||||
$aResult['class'] = 'place';
|
||||
|
||||
Reference in New Issue
Block a user