summaryrefslogtreecommitdiff
path: root/lib/Travelynx.pm
diff options
context:
space:
mode:
authorDerf Null <derf@finalrewind.org>2023-05-11 18:32:27 +0200
committerDerf Null <derf@finalrewind.org>2023-05-11 18:32:27 +0200
commitb9f8ccd82af56a50f2617048fb3c43d824521f54 (patch)
tree8878c6c1cade477ae25e50e5ce5bb3dca594b817 /lib/Travelynx.pm
parent851be46754f6db586f1742545bc3aac5030f0d3f (diff)
ajax route: handle missing schedule data1.31.2
Diffstat (limited to 'lib/Travelynx.pm')
-rwxr-xr-xlib/Travelynx.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Travelynx.pm b/lib/Travelynx.pm
index ca80352..7ec1e5c 100755
--- a/lib/Travelynx.pm
+++ b/lib/Travelynx.pm
@@ -1332,10 +1332,10 @@ sub startup {
for my $station ( @{ $journey->{route_after} } ) {
my $station_desc = $station->[0];
- if ( $station->[2]{rt_arr} ) {
+ if ( $station->[2]{sched_arr} and $station->[2]{rt_arr} ) {
$station_desc .= $station->[2]{sched_arr}->strftime(';%s');
$station_desc .= $station->[2]{rt_arr}->strftime(';%s');
- if ( $station->[2]{rt_dep} ) {
+ if ( $station->[2]{sched_dep} and $station->[2]{rt_dep} ) {
$station_desc
.= $station->[2]{sched_dep}->strftime(';%s');
$station_desc .= $station->[2]{rt_dep}->strftime(';%s');