summaryrefslogtreecommitdiff
path: root/templates/_train_details.html.ep
diff options
context:
space:
mode:
authorBirte Kristina Friesel <birte.friesel@uos.de>2024-03-06 18:24:19 +0100
committerBirte Kristina Friesel <birte.friesel@uos.de>2024-03-06 18:24:19 +0100
commit70b8717c3025f09550cf144e838ee0313346ef72 (patch)
tree06f148163fd38493262c15d8aeb117f17698b226 /templates/_train_details.html.ep
parent4952d3845a89fd78966c3ae6f15e551d73c37dee (diff)
train_details: handle undefined $wr->direction
Diffstat (limited to 'templates/_train_details.html.ep')
-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 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) {