From 99a3e2162a6d552b3633b560ddd91a224a3a8b6e Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 12 Feb 2016 11:47:22 +0000 Subject: [PATCH] Bug 15747: Do not use CGI->param in list context - Auth.pm Test plan: Log you in! Without this patch applied, you will get a warning "Fetching the value or values of a single named parameter" With this patch applied, the warning from C4::Auth line 401 should not appear anymore in the log file. Signed-off-by: Marcel de Rooy Note: no warnings for older CGI versions. Signed-off-by: Brendan Gallagher brendan@bywatersolutions.com (cherry picked from commit d9c19c6d45ad3f62119e3a29f37e227f635cb85c) Signed-off-by: Julian Maurice --- C4/Auth.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Auth.pm b/C4/Auth.pm index e3e4cdec7b..068187cfb6 100644 --- a/C4/Auth.pm +++ b/C4/Auth.pm @@ -397,7 +397,7 @@ sub get_template_and_user { $template->param( dateformat => C4::Context->preference('dateformat') ); } - $template->param(auth_forwarded_hash => $in->{'query'}->param('auth_forwarded_hash')); + $template->param(auth_forwarded_hash => scalar $in->{'query'}->param('auth_forwarded_hash')); # these template parameters are set the same regardless of $in->{'type'} -- 2.39.5