From 6c65a1dce8f0ac1807ff03047584daaaf14ad650 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 6 Jun 2016 13:31:29 +0100 Subject: [PATCH] Bug 16670: (bug 15823 follow-up) CGI->param should not be called in list context MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jacek Ablewicz Signed-off-by: Marcel de Rooy Signed-off-by: Kyle M Hall (cherry picked from commit 58207446755cb2533fac48252c3b70154b164feb) Signed-off-by: Frédéric Demians (cherry picked from commit 302ac5e2a88d73601ee36fcc7460beca281b6fb7) Signed-off-by: Julian Maurice --- circ/circulation.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/circ/circulation.pl b/circ/circulation.pl index 63aa1fd69e..34f98d884a 100755 --- a/circ/circulation.pl +++ b/circ/circulation.pl @@ -613,7 +613,7 @@ $template->param( canned_bor_notes_loop => $canned_notes, debarments => GetDebarments({ borrowernumber => $borrowernumber }), todaysdate => output_pref( { dt => dt_from_string()->set(hour => 23)->set(minute => 59), dateformat => 'sql' } ), - nopermission => $query->param('nopermission'), + nopermission => scalar $query->param('nopermission'), modifications => Koha::Borrower::Modifications->GetModifications({ borrowernumber => $borrowernumber }), ); -- 2.39.5