summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2024-08-02 14:50:22 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2024-08-02 14:50:22 +0200
commit2de6379ecc6dac0001c9ee1bdca600fc41ca210a (patch)
treec134ee0b364290e3379e0daaf7817ca4892f5622 /lib
parent04675008202c0b11d74f41106aa0706c85b9ac81 (diff)
Journey: only set route_start if it is known
Diffstat (limited to 'lib')
-rw-r--r--lib/Travel/Status/DE/HAFAS/Journey.pm2
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;
}