From 727e2df2b889cdfedaabad77172c640f79c3687b Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 15 Aug 2018 15:17:57 -0300 Subject: [PATCH] Bug 19991: Remove warning from opac-user Use of uninitialized value in split at /home/vagrant/kohaclone/opac/opac-user.pl line 78. Use of uninitialized value $search_query in string ne at /home/vagrant/kohaclone/opac/opac-user.pl line 367. Signed-off-by: Jonathan Druart Signed-off-by: Nick Clemens (cherry picked from commit 38428fd71e76fdd7c9a452bc831affa03918994c) Signed-off-by: Martin Renvoize --- opac/opac-user.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opac/opac-user.pl b/opac/opac-user.pl index df604ca8d7..2ba7496360 100755 --- a/opac/opac-user.pl +++ b/opac/opac-user.pl @@ -75,7 +75,7 @@ my ( $template, $borrowernumber, $cookie ) = get_template_and_user( } ); -my %renewed = map { $_ => 1 } split( ':', $query->param('renewed') ); +my %renewed = map { $_ => 1 } split( ':', $query->param('renewed') || '' ); my $show_priority; for ( C4::Context->preference("OPACShowHoldQueueDetails") ) { -- 2.39.5