From 0fe1ac3b5752f71691ca55a587cf1428e2c5b0ce Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 24 May 2016 20:45:19 +0100 Subject: [PATCH] Bug 15823: Force scalar context CGI->param must not be called in list context --- circ/circulation.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/circ/circulation.pl b/circ/circulation.pl index b2bcdd1..ca55c9c 100755 --- a/circ/circulation.pl +++ b/circ/circulation.pl @@ -673,7 +673,7 @@ $template->param( todaysdate => output_pref( { dt => dt_from_string()->set(hour => 23)->set(minute => 59), dateformat => 'sql' } ), modifications => Koha::Patron::Modifications->GetModifications({ borrowernumber => $borrowernumber }), override_high_holds => $override_high_holds, - nopermission => $query->param('nopermission'), + nopermission => scalar $query->param('nopermission'), ); output_html_with_http_headers $query, $cookie, $template->output; -- 2.8.1