]> git.openstreetmap.org Git - nominatim.git/blobdiff - website/reverse.php
polygons.php: print total number of broken polygons
[nominatim.git] / website / reverse.php
index 79a950124d8e077f7ed98418d18073d73ddec9fd..fd1f5c27c2f7cb43683d4315dee6bc5f67da67d9 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
        {