Bug 289736: error message in query.cgi: Unknown column 'relevance' - Patch by Teemu Mannermaa <wicked@etlicon.fi> r=jouni a=justdave

This commit is contained in:
lpsolit%gmail.com 2005-04-12 17:57:15 +00:00
parent 1e376c10a5
commit cb5017a3ec

View File

@ -161,7 +161,7 @@ if ($::buffer =~ /&cmd-/) {
# we'll remove the relevance column from the lists of columns to display
# and order by, since relevance only exists when doing a fulltext search.
my $fulltext = 0;
if (defined $cgi->param('content')) { $fulltext = 1 }
if ($cgi->param('content')) { $fulltext = 1 }
my @charts = map(/^field(\d-\d-\d)$/ ? $1 : (), $cgi->param());
foreach my $chart (@charts) {
if ($cgi->param("field$chart") eq 'content' && $cgi->param("value$chart")) {