Bug 22076: Add missing whitespace on if statments
authorKyle M Hall <kyle@bywatersolutions.com>
Wed, 9 Jan 2019 12:06:25 +0000 (07:06 -0500)
committerNick Clemens <nick@bywatersolutions.com>
Thu, 28 Mar 2019 12:08:18 +0000 (12:08 +0000)
Rescued-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
C4/SIP/ILS.pm

index e915887..aeaa0d2 100644 (file)
@@ -217,24 +217,24 @@ sub checkin {
         return $circ;
     }
 
-    if( !$circ->ok && $circ->alert_type && $circ->alert_type == 98 ) { # data corruption
+    if ( !$circ->ok && $circ->alert_type && $circ->alert_type == 98 ) { # data corruption
         $circ->screen_msg("Checkin failed: data problem");
         syslog( "LOG_WARNING", "Problem with issue_id in issues and old_issues; check the about page" );
-    } elsif( $data->{messages}->{withdrawn} && !$circ->ok ) {
+    } elsif ( $data->{messages}->{withdrawn} && !$circ->ok ) {
             $circ->screen_msg("Item withdrawn, return not allowed");
             syslog("LOG_DEBUG", "C4::SIP::ILS::Checkin - item withdrawn");
-    } elsif( $data->{messages}->{WasLost} && !$circ->ok ) {
+    } elsif ( $data->{messages}->{WasLost} && !$circ->ok ) {
             $circ->screen_msg("Item lost, return not allowed");
             syslog("LOG_DEBUG", "C4::SIP::ILS::Checkin - item lost");
-    } elsif( !$item->{patron} ) {
-        if( $checked_in_ok ) { # Mark checkin ok although book not checked out
+    } elsif ( !$item->{patron} ) {
+        if ( $checked_in_ok ) { # Mark checkin ok although book not checked out
             $circ->ok( 1 );
             syslog("LOG_DEBUG", "C4::SIP::ILS::Checkin - using checked_in_ok");
         } else {
             $circ->screen_msg("Item not checked out");
             syslog("LOG_DEBUG", "C4::SIP::ILS::Checkin - item not checked out");
         }
-    } elsif( $circ->ok ) {
+    } elsif ( $circ->ok ) {
         $circ->patron( $patron = C4::SIP::ILS::Patron->new( $item->{patron} ) );
         delete $item->{patron};
         delete $item->{due_date};