|
Lines 3915-3920
sub CalcDateDue {
Link Here
|
| 3915 |
my @close = undef; |
3915 |
my @close = undef; |
| 3916 |
my $tomorrowhours = Koha::Library::Hours->find( { library_id => $branch, day => $tomorrow_dayofweek } ) |
3916 |
my $tomorrowhours = Koha::Library::Hours->find( { library_id => $branch, day => $tomorrow_dayofweek } ) |
| 3917 |
; # get open hours of next day |
3917 |
; # get open hours of next day |
|
|
3918 |
|
| 3919 |
# Defend against missing library hours definitions |
| 3920 |
if ( !$todayhours || !$tomorrowhours ) { $considerlibraryhours = 'ignore' } |
| 3921 |
|
| 3918 |
my @open = undef; |
3922 |
my @open = undef; |
| 3919 |
if ( $considerlibraryhours ne 'ignore' and $todayhours->close_time and $tomorrowhours->open_time ) { |
3923 |
if ( $considerlibraryhours ne 'ignore' and $todayhours->close_time and $tomorrowhours->open_time ) { |
| 3920 |
@close = split( ":", $todayhours->close_time ); |
3924 |
@close = split( ":", $todayhours->close_time ); |
| 3921 |
- |
|
|