work: real_arr_ts may be undefined

This commit is contained in:
Daniel Friesel 2023-04-02 17:05:13 +02:00
parent 2302e5388e
commit 3b6297b785
No known key found for this signature in database
GPG key ID: F07AF8DC23EA5E97

View file

@ -165,7 +165,8 @@ sub run {
} }
else { else {
$self->app->add_route_timestamps( $uid, $train, 0, $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} ) { elsif ( $entry->{real_arr_ts} ) {