From e6daded166fcfdd778d07d7e2eb2230b5ed8454b Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Thu, 18 Sep 2008 19:09:02 -0500 Subject: [PATCH] bug 2625: finish fix by converting another array to hash Signed-off-by: Galen Charlton --- members/moremember.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/members/moremember.pl b/members/moremember.pl index 065b1a5150..ae3f82d910 100755 --- a/members/moremember.pl +++ b/members/moremember.pl @@ -64,8 +64,8 @@ my $print = $input->param('print'); my @failedrenews = $input->param('failedrenew'); my @failedreturns = $input->param('failedreturn'); my $error = $input->param('error'); -my @renew_failed; -for my $renew (@failedrenews) { $renew_failed[$renew] = 1; } +my %renew_failed; +for my $renew (@failedrenews) { $renew_failed{$renew} = 1; } my %return_failed; for my $failedret (@failedreturns) { $return_failed{$failedret} = 1; } @@ -247,7 +247,7 @@ for ( my $i = 0 ; $i < $count ; $i++ ) { my ( $renewokay,$renewerror ) = CanBookBeRenewed( $borrowernumber, $issue->[$i]{'itemnumber'}); $row{'norenew'} = !$renewokay; $row{"norenew_reason_$renewerror"} = 1 if $renewerror; - $row{'renew_failed'} = $renew_failed[$issue->[$i]{'itemnumber'}]; + $row{'renew_failed'} = $renew_failed{ $issue->[$i]{'itemnumber'} }; $row{'return_failed'} = $return_failed{$issue->[$i]{'barcode'}}; push( @issuedata, \%row ); } -- 2.39.5