From 3b6297b785d53d1a329bde437cdedeaf9cba2373 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 2 Apr 2023 17:05:13 +0200 Subject: work: real_arr_ts may be undefined --- lib/Travelynx/Command/work.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/Travelynx/Command') 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} ) { -- cgit v1.2.3