diff options
| author | Birte Kristina Friesel <derf@finalrewind.org> | 2025-12-28 09:14:38 +0100 |
|---|---|---|
| committer | Birte Kristina Friesel <derf@finalrewind.org> | 2025-12-28 09:14:38 +0100 |
| commit | c8e94d6210859e9ee4d5a22901d1f45948975c5b (patch) | |
| tree | 769439dd63f69455c0ccbb2987b17ff715a50d7d /lib | |
| parent | 8e58c773f6d66a6f69c87e00b420098b540936eb (diff) | |
work: iris: ensure that real_arr_ts is defined2.18.2
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/Travelynx/Command/work.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Travelynx/Command/work.pm b/lib/Travelynx/Command/work.pm index 41325d2..7a7ce22 100644 --- a/lib/Travelynx/Command/work.pm +++ b/lib/Travelynx/Command/work.pm @@ -782,7 +782,9 @@ sub run { $self->app->add_stationinfo( $uid, 0, $train->train_id, $dep, $arr ); } - if ( $now->epoch - $entry->{real_arr_ts} < 900 ) { + if ( defined $entry->{real_arr_ts} + and $now->epoch - $entry->{real_arr_ts} < 900 ) + { my @destinations = $self->app->journeys->get_connection_targets( uid => $uid, |
