more warn log quieting
authorChris Sharp <csharp@georgialibraries.org>
Tue, 31 Jan 2023 18:14:32 +0000 (13:14 -0500)
committerChris Sharp <csharp@georgialibraries.org>
Tue, 31 Jan 2023 18:14:32 +0000 (13:14 -0500)
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/CircCommon.pm

index 6a7044c..c72072c 100644 (file)
@@ -327,7 +327,7 @@ sub can_close_circ {
     # checked in or renewed.
     if ($circ->checkin_time) {
         $can_close = 1;
-    } elsif ($reason eq OILS_STOP_FINES_LOST) {
+    } elsif ($reason && $reason eq OILS_STOP_FINES_LOST) {
         # Check the copy circ_lib to see if they close
         # transactions when lost are paid.
         my $copy = $e->retrieve_asset_copy($circ->target_copy);
@@ -341,7 +341,7 @@ sub can_close_circ {
             );
         }
 
-    } elsif ($reason eq OILS_STOP_FINES_LONGOVERDUE) {
+    } elsif ($reason && $reason eq OILS_STOP_FINES_LONGOVERDUE) {
         # Check the copy circ_lib to see if they close
         # transactions when long-overdue are paid.
         my $copy = $e->retrieve_asset_copy($circ->target_copy);