From f561a3d1c75f3a39bb488adb7bc5ce6478cc17e7 Mon Sep 17 00:00:00 2001 From: Brian Quinion Date: Thu, 28 Apr 2011 14:55:25 +0000 Subject: [PATCH] Do not apply limit where we have a sub-search --- website/search.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/search.php b/website/search.php index 070ca524..1efb7ff5 100755 --- a/website/search.php +++ b/website/search.php @@ -754,7 +754,7 @@ $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"; -- 2.39.5