]> git.openstreetmap.org Git - nominatim.git/commitdiff
Merge remote-tracking branch 'upstream/master'
authorSarah Hoffmann <lonvia@denofr.de>
Sat, 19 Jan 2013 08:29:39 +0000 (09:29 +0100)
committerSarah Hoffmann <lonvia@denofr.de>
Sat, 19 Jan 2013 08:29:39 +0000 (09:29 +0100)
website/search.php

index 0d398cc43db216255a251bc20eacb59efa9fed04..cfc1455f28c85b4bd5190efa415cbd2faa5c77dc 100755 (executable)
        }
        if (sizeof($aStructuredQuery) > 0) {
                $sQuery = join(', ', $aStructuredQuery);
-               $sAllowedTypesSQLList = '(\'place\',\'boundary\')';
+               if ($iMaxAddressRank < 30)
+               {
+                       $sAllowedTypesSQLList = '(\'place\',\'boundary\')';
+               }
        }
 
        if ($sQuery)
                                        if ($iGroupLoop > 4) break;
                                        if ($iQueryLoop > 30) break;
                                }
-//exit;
+
                                // Did we find anything?        
                                if (isset($aResultPlaceIDs) && sizeof($aResultPlaceIDs))
                                {