summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2023-09-24 18:20:15 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2023-09-24 18:20:15 +0200
commite346f969b0da6496da225186c46cf2c65d1df21f (patch)
tree62fbf3921b781e983a754eb65b85c7817ae90c94
parentde074342de0bdc3604a0610a0c5f9cce5338bb85 (diff)
intransit: support HAFAS trains that do not have a type
-rw-r--r--lib/Travelynx/Model/InTransit.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Travelynx/Model/InTransit.pm b/lib/Travelynx/Model/InTransit.pm
index 9899676..adcdfa3 100644
--- a/lib/Travelynx/Model/InTransit.pm
+++ b/lib/Travelynx/Model/InTransit.pm
@@ -150,7 +150,7 @@ sub add {
checkin_station_id => $stop->eva,
checkin_time => DateTime->now( time_zone => 'Europe/Berlin' ),
dep_platform => $stop->{platform},
- train_type => $journey->type,
+ train_type => $journey->type // q{},
train_line => $journey->line_no,
train_no => $journey->number // q{},
train_id => $journey->id,