]> git.openstreetmap.org Git - nominatim.git/commitdiff
don't search for country if house number was requested
authorSarah Hoffmann <lonvia@denofr.de>
Sat, 17 Nov 2012 21:28:01 +0000 (22:28 +0100)
committerSarah Hoffmann <lonvia@denofr.de>
Sat, 17 Nov 2012 21:28:01 +0000 (22:28 +0100)
website/search.php

index c7171f98799c342eb8d8027f8183780e6e3f180b..9941907de93def39940c20942faa6fc0760d51a5 100755 (executable)
                                                // Must have a location term
                                                if (!sizeof($aSearch['aName']) && !sizeof($aSearch['aAddress']) && !$aSearch['fLon'])
                                                {
-                                                       if ($aSearch['sCountryCode'] && !$aSearch['sClass'])
+                                                       if ($aSearch['sCountryCode'] && !$aSearch['sClass'] && !$aSearch['sHouseNumber'])
                                                        {
                                                                if (4 >= $iMinAddressRank && 4 <= $iMaxAddressRank)
                                                                {