From 1d7270a4c0e96ba25a65d6c080033f87b63ae6b0 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 5 Jan 2020 11:35:42 +0100 Subject: handle undefined train types --- lib/DBInfoscreen/Controller/Stationboard.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/DBInfoscreen/Controller/Stationboard.pm b/lib/DBInfoscreen/Controller/Stationboard.pm index fb778dd..4af9ff4 100644 --- a/lib/DBInfoscreen/Controller/Stationboard.pm +++ b/lib/DBInfoscreen/Controller/Stationboard.pm @@ -984,7 +984,7 @@ sub handle_request { ? $result->departure->strftime('%H:%M') : undef, train => $result->train, - train_type => $result->type, + train_type => $result->type // '', train_line => $result->line_no, train_no => $result->train_no, via => [ $result->route_interesting(3) ], -- cgit v1.2.3