From e4b8be45789e1a22216368f6618e5017c89e0bbd Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Thu, 21 Oct 2021 10:31:18 +0000 Subject: [PATCH] Bug 29284: (follow-up) Fix code that I copied from too Signed-off-by: Jonathan Druart Signed-off-by: Kyle M Hall (cherry picked from commit c32cca53bdfe07a3ee27ebac36c7aae3d51c68d9) Signed-off-by: Victor Grousset/tuxayo --- catalogue/search.pl | 5 ++++- opac/opac-search.pl | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/catalogue/search.pl b/catalogue/search.pl index 5c9bac7032..c9f2d7aeae 100755 --- a/catalogue/search.pl +++ b/catalogue/search.pl @@ -515,7 +515,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; } diff --git a/opac/opac-search.pl b/opac/opac-search.pl index cd0e0ae12a..986490a604 100755 --- a/opac/opac-search.pl +++ b/opac/opac-search.pl @@ -597,7 +597,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; } -- 2.39.5