From b8566e4d8f5bc2df8b90c857a99c0f5c0beaebd8 Mon Sep 17 00:00:00 2001 From: Max Kanat-Alexander Date: Wed, 2 Mar 2011 00:43:43 -0800 Subject: Bug 632718: Only return 500 search results unless the user specifically requests to see more. r=dkl, a=mkanat --- Bugzilla/Search.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Bugzilla/Search.pm') diff --git a/Bugzilla/Search.pm b/Bugzilla/Search.pm index edb59e40e..81b459ee5 100644 --- a/Bugzilla/Search.pm +++ b/Bugzilla/Search.pm @@ -920,7 +920,7 @@ sub _sql_limit { $limit = $max_results; } - if (defined $offset and not defined $limit) { + if (defined($offset) && !$limit) { $limit = INT_MAX; } if (defined $limit) { -- cgit v1.2.3-24-g4f1b