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)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 17 Jun 2016 14:35:47 +0000 (14:35 +0000)
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>
circ/circulation.pl

index b2201cf..3057370 100755 (executable)
@@ -671,7 +671,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;