From 8055714d949e8337897bc30dc55add782ec9d5de Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Wed, 6 Jan 2010 14:59:10 +0000 Subject: Bug 535675: Typing +foo in the QuickSearch box throws an "uninitialized value" warning (missing 'order' parameter) - Patch by Frédéric Buclin r=wicked a=LpSolit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- buglist.cgi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'buglist.cgi') diff --git a/buglist.cgi b/buglist.cgi index 6b03b123d..b8cfa6336 100755 --- a/buglist.cgi +++ b/buglist.cgi @@ -855,7 +855,9 @@ if (defined $cgi->param('limit')) { } elsif ($fulltext) { $query .= " " . $dbh->sql_limit(FULLTEXT_BUGLIST_LIMIT); - $vars->{'message'} = 'buglist_sorted_by_relevance' if ($cgi->param('order') =~ /^relevance/); + if ($cgi->param('order') && $cgi->param('order') =~ /^relevance/) { + $vars->{'message'} = 'buglist_sorted_by_relevance'; + } } -- cgit v1.2.3-24-g4f1b