From 0ef3b19dbd414539dbc8c45ecc595e399df31781 Mon Sep 17 00:00:00 2001 From: Chris Cormack Date: Sun, 24 Jul 2016 19:18:51 +1200 Subject: [PATCH] Bug 16969 cgi->param used in list context in opac-memberentry.pl To test 1/ Hit the page, notice the warning in the log 2/ Apply patch 3/ Hit page, notice no warning in the log 4/ Test functionality all still works Works as expected. (Note: See Bug 16960 for updating patron details). Signed-off-by: Marc Signed-off-by: Marcel de Rooy Signed-off-by: Kyle M Hall --- opac/opac-memberentry.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opac/opac-memberentry.pl b/opac/opac-memberentry.pl index e4945e7217..592c99be60 100755 --- a/opac/opac-memberentry.pl +++ b/opac/opac-memberentry.pl @@ -374,7 +374,7 @@ sub ParseCgiForBorrower { foreach ( $cgi->param ) { if ( $_ =~ '^borrower_' ) { my ($key) = substr( $_, 9 ); - $borrower{$key} = HTML::Entities::encode( $scrubber->scrub( $cgi->param($_) ) ); + $borrower{$key} = HTML::Entities::encode( $scrubber->scrub( scalar $cgi->param($_) ) ); } } -- 2.39.5