From 79b6e864add85748cfa66854812a35a59dbd1d89 Mon Sep 17 00:00:00 2001 From: Mark Tompsett Date: Fri, 29 Jun 2012 21:54:44 +0800 Subject: [PATCH] Bug 7630 - Warning on moremember.pl about param without key Move "$error => 1," to its own conditional $template->param() Signed-off-by: Chris Cormack Signed-off-by: Paul Poulain --- members/moremember.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/members/moremember.pl b/members/moremember.pl index b4e80f7932..8f529f3318 100755 --- a/members/moremember.pl +++ b/members/moremember.pl @@ -422,7 +422,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, @@ -434,6 +433,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; -- 2.39.5