From ac89ecf103ed40ab7c4a11ffebef92d6aebbd964 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 17 Feb 2020 16:59:15 +0100 Subject: [PATCH] Bug 24367: May fix another warning May fix the following warning: Use of uninitialized value in concatenation (.) or string at /kohadevbox/koha/C4/Search.pm line 1818. --- C4/Search.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Search.pm b/C4/Search.pm index f79c69a868..d56988e9c2 100644 --- a/C4/Search.pm +++ b/C4/Search.pm @@ -1815,7 +1815,7 @@ sub _build_initial_query { $params->{query_cgi} .= "&q=".uri_escape_utf8($params->{original_operand}) if $params->{original_operand}; #e.g. " and kw,wrdl: test" - $params->{query_desc} .= $operator . $params->{index_plus} . " " . $params->{original_operand}; + $params->{query_desc} .= ( $operator . ( $params->{index_plus} // q{} ) . " " . ( $params->{original_operand} // q{} ); $params->{previous_operand} = 1 unless $params->{previous_operand}; #If there is no previous operand, mark this as one -- 2.11.0