diff options
author | Daniel Friesel <derf@finalrewind.org> | 2020-01-05 11:35:42 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2020-01-05 11:35:42 +0100 |
commit | 1d7270a4c0e96ba25a65d6c080033f87b63ae6b0 (patch) | |
tree | d80f01dc2a8ea10da43068fbb4e2e830e91802d6 | |
parent | deccb957cf6db4d69be796c11d5c724dc47c6b48 (diff) |
handle undefined train types2.5.4
-rw-r--r-- | lib/DBInfoscreen/Controller/Stationboard.pm | 2 |
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) ], |