From 678d8c03a013c9c5286cbd1fd7ac9ad639c06f64 Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Thu, 8 Aug 2013 01:40:17 +0200 Subject: [PATCH] Bug 10663: Follow-up - Revert and use CheckReserves for CanBookBeRenewed CheckReserves returns '' when no reserve is found, so $resfound will always be defined and we need to check if it's true. This is part of the revert. Signed-off-by: Chris Cormack --- C4/Circulation.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Circulation.pm b/C4/Circulation.pm index aee1dbd..c578213 100644 --- a/C4/Circulation.pm +++ b/C4/Circulation.pm @@ -2486,7 +2486,7 @@ sub CanBookBeRenewed { my ( $resfound, $resrec, undef ) = C4::Reserves::CheckReserves( $itemnumber ); - if ( defined $resfound ) { + if ( $resfound ) { # '' when no hold was found $renewokay = 0; $error = "on_reserve"; } -- 1.8.3.1