]> git.openstreetmap.org Git - nominatim.git/commitdiff
Do not apply limit where we have a sub-search
authorBrian Quinion <openstreetmap@brian.quinion.co.uk>
Thu, 28 Apr 2011 14:55:25 +0000 (14:55 +0000)
committerBrian Quinion <openstreetmap@brian.quinion.co.uk>
Thu, 28 Apr 2011 14:55:25 +0000 (14:55 +0000)
website/search.php

index 070ca5245a05ec50da87bc4984020d7d5f9575b9..1efb7ff5805a981fda5c51473a88801783c0f226 100755 (executable)
                                                                $sSQL .= " from search_name";
                                                                $sSQL .= " where ".join(' and ',$aTerms);
                                                                $sSQL .= " order by ".join(', ',$aOrder);
-                                                               if ($aSearch['sHouseNumber'])
+                                                               if ($aSearch['sHouseNumber'] || $aSearch['sClass'])
                                                                        $sSQL .= " limit 50";
                                                                elseif (!sizeof($aSearch['aName']) && !sizeof($aSearch['aAddress']) && $aSearch['sClass'])
                                                                        $sSQL .= " limit 1";