From 62ab2a77c4a91e68b3f5c867323dad95f832b500 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Sun, 7 Jun 2009 14:31:43 -0500 Subject: [PATCH] additional cleanup in GetItemsInfo() * remove unused variable * moved declaration of $count_reseves Signed-off-by: Galen Charlton --- C4/Items.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/C4/Items.pm b/C4/Items.pm index 595812c46e..6c58365ef0 100644 --- a/C4/Items.pm +++ b/C4/Items.pm @@ -1235,7 +1235,7 @@ sub GetItemsInfo { $sth->execute($biblionumber); my $i = 0; my @results; - my ( $date_due, $count_reserves, $serial ); + my $serial; my $isth = $dbh->prepare( "SELECT issues.*,borrowers.cardnumber,borrowers.surname,borrowers.firstname,borrowers.branchcode as bcode @@ -1245,6 +1245,7 @@ sub GetItemsInfo { my $ssth = $dbh->prepare("SELECT serialseq,publisheddate from serialitems left join serial on serialitems.serialid=serial.serialid where serialitems.itemnumber=? "); while ( my $data = $sth->fetchrow_hashref ) { my $datedue = ''; + my $count_reserves; $isth->execute( $data->{'itemnumber'} ); if ( my $idata = $isth->fetchrow_hashref ) { $data->{borrowernumber} = $idata->{borrowernumber}; -- 2.39.5