Bug 29284: (follow-up) Fix code that I copied from too
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
This commit is contained in:
parent
cf29caf39f
commit
c32cca53bd
|
|
@ -546,7 +546,10 @@ eval {
|
|||
};
|
||||
|
||||
if ($@ || $error) {
|
||||
$template->param(query_error => $error.$@);
|
||||
my $query_error = q{};
|
||||
$query_error .= $error if $error;
|
||||
$query_error .= $@ if $@;
|
||||
$template->param(query_error => $query_error);
|
||||
output_html_with_http_headers $cgi, $cookie, $template->output;
|
||||
exit;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -613,7 +613,10 @@ if ($tag) {
|
|||
|
||||
# use Data::Dumper; print STDERR "-" x 25, "\n", Dumper($results_hashref);
|
||||
if (not $tag and ( $@ || $error)) {
|
||||
$template->param(query_error => $error.$@);
|
||||
my $query_error = q{};
|
||||
$query_error .= $error if $error;
|
||||
$query_error .= $@ if $@;
|
||||
$template->param(query_error => $query_error);
|
||||
output_html_with_http_headers $cgi, $cookie, $template->output;
|
||||
exit;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue