summaryrefslogtreecommitdiff
path: root/templates/app.html.ep
diff options
context:
space:
mode:
Diffstat (limited to 'templates/app.html.ep')
-rw-r--r--templates/app.html.ep4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/app.html.ep b/templates/app.html.ep
index d6d07b6..fd7c1f1 100644
--- a/templates/app.html.ep
+++ b/templates/app.html.ep
@@ -83,8 +83,8 @@
%= $departure->{train_line}
% }
% elsif ($departure->{train_no}) {
-% if (exists $ice_type->{$departure->{train_no}}) {
- <span class="trainsubtype"><%= $ice_type->{$departure->{train_no}} %></span>
+% if (exists $ice_type->{$departure->{train_no}} and $ice_type->{$departure->{train_no}}[1]) {
+ <span class="trainsubtype"><%= $ice_type->{$departure->{train_no}}[1] %></span>
% }
<span class="trainno"><%= $departure->{train_no} %></span>
% }