Bug 10493: (follow-up) fix unitialized variable warning
authorGalen Charlton <gmc@esilibrary.com>
Tue, 22 Oct 2013 20:59:50 +0000 (20:59 +0000)
committerGalen Charlton <gmc@esilibrary.com>
Tue, 22 Oct 2013 20:59:50 +0000 (20:59 +0000)
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
circ/renew.pl

index df1dcaa..8cde633 100755 (executable)
@@ -65,7 +65,7 @@ if ($barcode) {
                   CanBookBeRenewed( $borrower->borrowernumber(),
                     $item->itemnumber(), $override_limit );
 
-                if ( $error eq 'on_reserve' ) {
+                if ( $error && ($error eq 'on_reserve') ) {
                     if ($override_holds) {
                         $can_renew = 1;
                         $error     = undef;