diff options
author | lpsolit%gmail.com <> | 2010-01-06 15:59:10 +0100 |
---|---|---|
committer | lpsolit%gmail.com <> | 2010-01-06 15:59:10 +0100 |
commit | 8055714d949e8337897bc30dc55add782ec9d5de (patch) | |
tree | d1fa1897df0512cf795cadd3f2a05762ac59e1f5 /buglist.cgi | |
parent | 56763dc0f63be91f3c9986fc2f6d6514a77f24e7 (diff) | |
download | bugzilla-8055714d949e8337897bc30dc55add782ec9d5de.tar.gz bugzilla-8055714d949e8337897bc30dc55add782ec9d5de.tar.xz |
Bug 535675: Typing +foo in the QuickSearch box throws an "uninitialized value" warning (missing 'order' parameter) - Patch by Frédéric Buclin <LpSolit@gmail.com> r=wicked a=LpSolit
Diffstat (limited to 'buglist.cgi')
-rwxr-xr-x | buglist.cgi | 4 |
1 files changed, 3 insertions, 1 deletions
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'; + } } |