Bug 16670: (bug 15823 follow-up) CGI->param should not be called in list context
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 6 Jun 2016 12:31:29 +0000 (13:31 +0100)
committerJulian Maurice <julian.maurice@biblibre.com>
Fri, 1 Jul 2016 06:44:05 +0000 (08:44 +0200)
Signed-off-by: Jacek Ablewicz <abl@biblos.pk.edu.pl>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit 58207446755cb2533fac48252c3b70154b164feb)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
(cherry picked from commit 302ac5e2a88d73601ee36fcc7460beca281b6fb7)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>

circ/circulation.pl

index 63aa1fd..34f98d8 100755 (executable)
@@ -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 }),
 );