use more correct test (rather than a side-effect) to detect short durations circs
[Evergreen.git] / Open-ILS / src / perlmods / OpenILS / Application / Storage / Publisher / action.pm
index 8b0199f..49ae2f1 100644 (file)
@@ -579,7 +579,7 @@ sub generate_fines {
             $fine_interval =~ s/(\d{2}):(\d{2}):(\d{2})/$1 h $2 m $3 s/o;
                        $fine_interval = interval_to_seconds( $fine_interval );
        
-                       if ( interval_to_seconds( $c->fine_interval ) >= interval_to_seconds('1d') ) {  
+                       if ( $fine_interval >= interval_to_seconds('1d') ) {    
                                my $tz_offset_s = 0;
                                if ($due_dt->strftime('%z') =~ /(-|\+)(\d{2}):?(\d{2})/) {
                                        $tz_offset_s = $1 . interval_to_seconds( "${2}h ${3}m");