summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/_train_details.html.ep2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/_train_details.html.ep b/templates/_train_details.html.ep
index 709a1ac..d70ef30 100644
--- a/templates/_train_details.html.ep
+++ b/templates/_train_details.html.ep
@@ -119,7 +119,7 @@
% if (my $wr = $departure->{wr}) {
<div class="wagonorder-preview">
% my @wagons = $wr->wagons;
-% my $direction = $wr->direction ? $wr->direction == 100 ? '→' : '←' : q{};
+% my $direction = defined $wr->direction ? $wr->direction == 100 ? '→' : '←' : q{};
% if ($departure->{direction}) {
% $direction = $departure->{direction} eq 'l' ? '◀' : '▶';
% if (($departure->{direction} eq 'l' ? 0 : 100) != $wr->direction) {