summaryrefslogtreecommitdiff
path: root/lib/DBInfoscreen
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2024-08-11 18:16:05 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2024-08-11 18:16:05 +0200
commit6c62f176b87c2559db2d55a0ca00571035ff5b78 (patch)
tree212e2ab57035be94fff09a1b1f5811c5ac7e82d5 /lib/DBInfoscreen
parent70b6ef8094719a74d727573b5c14fd53ce843068 (diff)
map: handle undef journey type
Diffstat (limited to 'lib/DBInfoscreen')
-rw-r--r--lib/DBInfoscreen/Controller/Map.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/DBInfoscreen/Controller/Map.pm b/lib/DBInfoscreen/Controller/Map.pm
index bced612..ef19324 100644
--- a/lib/DBInfoscreen/Controller/Map.pm
+++ b/lib/DBInfoscreen/Controller/Map.pm
@@ -434,7 +434,7 @@ sub route {
ts => ( $journey->route )[-1]->arr,
},
train_no => $journey->number
- ? ( $journey->type . ' ' . $journey->number )
+ ? ( $journey->type // q{} . ' ' . $journey->number )
: undef,
operator => $journey->operator,
next_stop => $next_stop,