summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2023-02-05 09:16:15 +0100
committerDaniel Friesel <derf@finalrewind.org>2023-02-05 09:16:15 +0100
commitf7deac35786b3bf799f40cb563f440b23d5da716 (patch)
tree41d152ebc3ae6a5f47b91422ec95259e37dcc157 /lib
parent4d5aff8a8d7cd196d153967b31c035745dc11123 (diff)
Journey: some backends do not provide catOut
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 f3c1c28..94052ed 100644
--- a/lib/Travel/Status/DE/HAFAS/Journey.pm
+++ b/lib/Travel/Status/DE/HAFAS/Journey.pm
@@ -50,7 +50,7 @@ sub new {
my $train_no = $product->{prodCtx}{num};
my $cat = $product->{prodCtx}{catOut};
my $catlong = $product->{prodCtx}{catOutL};
- if ( $name eq $cat ) {
+ if ( $name and $cat and $name eq $cat ) {
$name .= ' ' . $product->{nameS};
}
if ( defined $train_no and not $train_no ) {