summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2023-04-02 17:05:13 +0200
committerDaniel Friesel <daniel.friesel@uos.de>2023-04-02 17:05:13 +0200
commit3b6297b785d53d1a329bde437cdedeaf9cba2373 (patch)
tree6012f46980ab5aa905b675d278c9392378520625
parent2302e5388e71fafa80c7c7702d6b5819734c2efb (diff)
work: real_arr_ts may be undefined1.30.12
-rw-r--r--lib/Travelynx/Command/work.pm3
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} ) {