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. Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
parent
0fdc9377d7
commit
5ecabb315a
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue