diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2024-08-02 14:50:22 +0200 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2024-08-02 14:50:22 +0200 |
commit | 2de6379ecc6dac0001c9ee1bdca600fc41ca210a (patch) | |
tree | c134ee0b364290e3379e0daaf7817ca4892f5622 /lib/Travel/Status/DE/HAFAS | |
parent | 04675008202c0b11d74f41106aa0706c85b9ac81 (diff) |
Journey: only set route_start if it is known
Diffstat (limited to 'lib/Travel/Status/DE/HAFAS')
-rw-r--r-- | lib/Travel/Status/DE/HAFAS/Journey.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Travel/Status/DE/HAFAS/Journey.pm b/lib/Travel/Status/DE/HAFAS/Journey.pm index 7933551..e02e45c 100644 --- a/lib/Travel/Status/DE/HAFAS/Journey.pm +++ b/lib/Travel/Status/DE/HAFAS/Journey.pm @@ -158,7 +158,7 @@ sub new { } $ref->{is_additional} = $journey->{stbStop}{isAdd}; } - else { + elsif ( $stops[0]{loc} ) { $ref->{route_start} = $stops[0]{loc}->name; } |