summaryrefslogtreecommitdiff
path: root/lib/Travelynx/Command/work.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Travelynx/Command/work.pm')
-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} ) {