diff options
Diffstat (limited to 'templates/_train_details.html.ep')
-rw-r--r-- | templates/_train_details.html.ep | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/_train_details.html.ep b/templates/_train_details.html.ep index ccdb70a..4943ba2 100644 --- a/templates/_train_details.html.ep +++ b/templates/_train_details.html.ep @@ -116,7 +116,7 @@ % if (my $wr = $departure->{wr}) { <div class="wagonorder-preview"> % my @wagons = $wr->wagons; -% my $direction = $wr->direction == 100 ? '→' : '←'; +% my $direction = $wr->direction ? $wr->direction == 100 ? '→' : '←' : q{}; % if ($departure->{direction}) { % $direction = $departure->{direction} eq 'l' ? '◀' : '▶'; % if (($departure->{direction} eq 'l' ? 0 : 100) != $wr->direction) { |