limit fallback to pure number housenumbers

This commit is contained in:
Brian Quinion
2011-03-28 11:37:17 +00:00
parent bf0710dd64
commit 6466194710

View File

@@ -816,7 +816,7 @@
} }
// Fallback to the road // Fallback to the road
if (!sizeof($aPlaceIDs)) if (!sizeof($aPlaceIDs) && preg_match('/^[0-9]+$/', $aSearch['sHouseNumber']))
{ {
$aPlaceIDs = $aRoadPlaceIDs; $aPlaceIDs = $aRoadPlaceIDs;
} }