$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';