# 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);
);
}
- } 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);