Bug 7630 - Warning on moremember.pl about param without key Move "$error => 1," to its own conditional $template->param()

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
This commit is contained in:
Mark Tompsett 2012-06-29 21:54:44 +08:00 committed by Chris Cormack
parent aa84adb88e
commit 5dd3e5bc9e
1 changed files with 1 additions and 1 deletions

View File

@ -421,7 +421,6 @@ $template->param(
relissueloop => @relissuedata,
overdues_exist => $overdues_exist,
error => $error,
$error => 1,
StaffMember => ($category_type eq 'S'),
is_child => ($category_type eq 'C'),
# reserveloop => \@reservedata,
@ -433,6 +432,7 @@ $template->param(
AutoResumeSuspendedHolds => C4::Context->preference('AutoResumeSuspendedHolds'),
SuspendHoldsIntranet => C4::Context->preference('SuspendHoldsIntranet'),
);
$template->param( $error => 1 ) if $error;
output_html_with_http_headers $input, $cookie, $template->output;