]> git.openstreetmap.org Git - nominatim.git/blobdiff - website/reverse.php
second argument of array_merge can be empty
[nominatim.git] / website / reverse.php
index d1c554a454352a79914f2f75a4096c182f8fa490..3254e710bda5048ee68b7f611ed6f30f3819d4a3 100755 (executable)
                $oPlaceLookup->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
        {