From 6c62f176b87c2559db2d55a0ca00571035ff5b78 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Sun, 11 Aug 2024 18:16:05 +0200 Subject: map: handle undef journey type --- lib/DBInfoscreen/Controller/Map.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- cgit v1.2.3