diff --git a/opac/opac-search.pl b/opac/opac-search.pl index 409e47d493..25af683ac9 100755 --- a/opac/opac-search.pl +++ b/opac/opac-search.pl @@ -617,7 +617,7 @@ if ($tag) { } # use Data::Dumper; print STDERR "-" x 25, "\n", Dumper($results_hashref); -if ($@ || $error) { +if (not $tag and ( $@ || $error)) { $template->param(query_error => $error.$@); output_html_with_http_headers $cgi, $cookie, $template->output; exit;