From fa0624eb41d0daf889e987ceab729c19b544a2bb Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Sun, 28 Apr 2024 15:55:53 +0200 Subject: carriage formation preview: fix direction == 0 --- templates/_train_details.html.ep | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates') 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}) {
% 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) { -- cgit v1.2.3