Bug 3387 follow-up: fix perlcritic error origin/new/bug_3387
authorPaul Poulain <paul.poulain@biblibre.com>
Mon, 1 Oct 2012 15:35:45 +0000 (17:35 +0200)
committerPaul Poulain <paul.poulain@biblibre.com>
Mon, 1 Oct 2012 15:35:45 +0000 (17:35 +0200)
C4/Circulation.pm

index f80f109..7485de5 100644 (file)
@@ -1833,7 +1833,8 @@ sub AddReturn {
 
     # find reserves.....
     # if we don't have a reserve with the status W, we launch the Checkreserves routine
-    my ($resfound, $resrec, undef) = C4::Reserves::CheckReserves( $item->{'itemnumber'} ) unless ( $item->{'wthdrawn'} );
+    my ($resfound, $resrec);
+    ($resfound, $resrec, undef) = C4::Reserves::CheckReserves( $item->{'itemnumber'} ) unless ( $item->{'wthdrawn'} );
     if ($resfound) {
           $resrec->{'ResFound'} = $resfound;
         $messages->{'ResFound'} = $resrec;