From 64661947109e6ed45a1527529b079ddab26d23e5 Mon Sep 17 00:00:00 2001 From: Brian Quinion Date: Mon, 28 Mar 2011 11:37:17 +0000 Subject: [PATCH] limit fallback to pure number housenumbers --- website/search.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/search.php b/website/search.php index 3b5d55ac..6596fca4 100755 --- a/website/search.php +++ b/website/search.php @@ -816,7 +816,7 @@ } // Fallback to the road - if (!sizeof($aPlaceIDs)) + if (!sizeof($aPlaceIDs) && preg_match('/^[0-9]+$/', $aSearch['sHouseNumber'])) { $aPlaceIDs = $aRoadPlaceIDs; } -- 2.39.5