From b9b3ca55e946b81006f7e695e94af08ba5f422c5 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 6 Jun 2016 13:34:45 +0100 Subject: [PATCH] Bug 16670: (bug 15823 follow-up) CGI->param should not be called in list context This patch will remove the following warning "Staff members are not allowed to discharge borrowers, nor borrowers to request a discharge." in 3.22.x branches Signed-off-by: Nick Clemens --- circ/circulation.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/circ/circulation.pl b/circ/circulation.pl index c421085..4405732 100755 --- a/circ/circulation.pl +++ b/circ/circulation.pl @@ -615,7 +615,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.1.4