From 0d5bb99d1569c7f9c5b1b0f7fef9300821603f14 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Mon, 13 Dec 2021 13:23:57 +0000 Subject: [PATCH] Bug 29687: Uninitialized warning C4/XSLT line 286 From plack-opac-error.log: [WARN] Use of uninitialized value $value in concatenation (.) or string at /usr/share/koha/C4/XSLT.pm line 286. Test plan: An opac search triggered the warning. So repeat it without warns. Signed-off-by: Marcel de Rooy Signed-off-by: Nick Clemens Signed-off-by: Fridolin Somers Signed-off-by: Kyle M Hall (cherry picked from commit 74382c321c16348919f83f63e505dea93239c2ca) Signed-off-by: Andrew Fuerste-Henry --- C4/XSLT.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/C4/XSLT.pm b/C4/XSLT.pm index a5a0c2feed..b9c99faca0 100644 --- a/C4/XSLT.pm +++ b/C4/XSLT.pm @@ -269,6 +269,7 @@ sub XSLTParse4Display { } my $varxml = "\n"; while (my ($key, $value) = each %$variables) { + $value //= q{}; $varxml .= "$value\n"; } $varxml .= "\n"; -- 2.39.5