diff options
author | Daniel Friesel <daniel.friesel@uos.de> | 2023-04-02 17:05:13 +0200 |
---|---|---|
committer | Daniel Friesel <daniel.friesel@uos.de> | 2023-04-02 17:05:13 +0200 |
commit | 3b6297b785d53d1a329bde437cdedeaf9cba2373 (patch) | |
tree | 6012f46980ab5aa905b675d278c9392378520625 | |
parent | 2302e5388e71fafa80c7c7702d6b5819734c2efb (diff) |
work: real_arr_ts may be undefined1.30.12
-rw-r--r-- | lib/Travelynx/Command/work.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Travelynx/Command/work.pm b/lib/Travelynx/Command/work.pm index 115be2e..7eaf4ce 100644 --- a/lib/Travelynx/Command/work.pm +++ b/lib/Travelynx/Command/work.pm @@ -165,7 +165,8 @@ sub run { } else { $self->app->add_route_timestamps( $uid, $train, 0, - $now->epoch > $entry->{real_arr_ts} ); + defined $entry->{real_arr_ts} + and $now->epoch > $entry->{real_arr_ts} ); } } elsif ( $entry->{real_arr_ts} ) { |