summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2020-01-05 11:35:42 +0100
committerDaniel Friesel <derf@finalrewind.org>2020-01-05 11:35:42 +0100
commit1d7270a4c0e96ba25a65d6c080033f87b63ae6b0 (patch)
treed80f01dc2a8ea10da43068fbb4e2e830e91802d6
parentdeccb957cf6db4d69be796c11d5c724dc47c6b48 (diff)
handle undefined train types2.5.4
-rw-r--r--lib/DBInfoscreen/Controller/Stationboard.pm2
1 files changed, 1 insertions, 1 deletions
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) ],