From c55f45867dfcea1125b68389831c2fc6a95bdc47 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 29 Nov 2016 19:20:13 +0100 Subject: [PATCH] But 17578: (followup) amountoutstanding Signed-off-by: Josef Moravec --- opac/opac-reserve.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opac/opac-reserve.pl b/opac/opac-reserve.pl index d11e9af..f1fe2ff 100755 --- a/opac/opac-reserve.pl +++ b/opac/opac-reserve.pl @@ -306,7 +306,7 @@ if ( $query->param('place_reserve') ) { my $noreserves = 0; my $maxoutstanding = C4::Context->preference("maxoutstanding"); $template->param( noreserve => 1 ) unless $maxoutstanding; -my $amountoutstanding = GetMemberAccountRecords($borrowernumber); +my ( $amountoutstanding ) = GetMemberAccountRecords($borrowernumber); if ( $amountoutstanding && ($amountoutstanding > $maxoutstanding) ) { my $amount = sprintf "%.02f", $amountoutstanding; $template->param( message => 1 ); -- 2.9.3