]> git.openstreetmap.org Git - nominatim.git/commitdiff
fallback housenumber for items containing a number - not just number only
authorBrian Quinion <openstreetmap@brian.quinion.co.uk>
Sat, 2 Apr 2011 15:07:48 +0000 (15:07 +0000)
committerBrian Quinion <openstreetmap@brian.quinion.co.uk>
Sat, 2 Apr 2011 15:07:48 +0000 (15:07 +0000)
website/search.php

index 6596fca4c77edb3008a8211fca3ab77d0297e00b..6a997acbfa7ddda08f8b4bdc303db1c486e1e744 100755 (executable)
                                                                }
 
                                                                // Fallback to the road
-                                                               if (!sizeof($aPlaceIDs) && preg_match('/^[0-9]+$/', $aSearch['sHouseNumber']))
+                                                               if (!sizeof($aPlaceIDs) && preg_match('/[0-9]+/', $aSearch['sHouseNumber']))
                                                                {
                                                                        $aPlaceIDs = $aRoadPlaceIDs;
                                                                }