From 7bce030fc614a1d1305e36164784f44240f82920 Mon Sep 17 00:00:00 2001 From: Chris Cormack Date: Mon, 7 Jan 2008 15:33:13 -0600 Subject: [PATCH] Fix for bug 1741, max reserves not being respected in the opac Signed-off-by: Joshua Ferraro --- opac/opac-reserve.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/opac/opac-reserve.pl b/opac/opac-reserve.pl index 7c1ad03f31..dd60968bc3 100755 --- a/opac/opac-reserve.pl +++ b/opac/opac-reserve.pl @@ -280,12 +280,12 @@ else { } my @reserves = GetReservesFromBorrowernumber( $borrowernumber ); $template->param( RESERVES => \@reserves ); - if ( scalar(@$reserves) >= $MAXIMUM_NUMBER_OF_RESERVES ) { + if ( scalar(@reserves) >= $MAXIMUM_NUMBER_OF_RESERVES ) { $template->param( message => 1 ); $noreserves = 1; - $template->param( too_many_reserves => scalar($reserves)); + $template->param( too_many_reserves => scalar(@reserves)); } - foreach my $res (@$reserves) { + foreach my $res (@reserves) { if ( $res->{'biblionumber'} == $biblionumber && $res->{'borrowernumber'} == $borrowernumber) { $template->param( message => 1 ); $noreserves = 1; -- 2.39.5