fix SQL query, RT#11127
[freeside.git] / httemplate / search / elements / search-html.html
index d6cc626..32f26e8 100644 (file)
                 <TR>
 %                 my $h2 = 0;
 %                 my $colspan = 0;
-%                 my @fields = @{ $opt{'sort_fields'} || $opt{'fields'}};
+%                 my @fields = @{ $opt{'sort_fields'} || $opt{'fields'} || [] };
 %                 my $order_by = $cgi->param('order_by');
 %                 foreach my $header ( @{ $opt{header} } ) { 
 %