diff options
author | lpsolit%gmail.com <> | 2010-01-06 14:59:10 +0000 |
---|---|---|
committer | lpsolit%gmail.com <> | 2010-01-06 14:59:10 +0000 |
commit | 8055714d949e8337897bc30dc55add782ec9d5de (patch) | |
tree | d1fa1897df0512cf795cadd3f2a05762ac59e1f5 /buglist.cgi | |
parent | Bug 538039: Typo when deleting a custom field value - Patch by Frédéric... (diff) | |
download | bugzilla-8055714d949e8337897bc30dc55add782ec9d5de.tar.gz bugzilla-8055714d949e8337897bc30dc55add782ec9d5de.tar.bz2 bugzilla-8055714d949e8337897bc30dc55add782ec9d5de.zip |
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'; + } } |