From 5e03718f14e9d8888a3bd0407828abf01beeda96 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Tue, 26 Nov 2019 18:35:51 +0100 Subject: [PATCH] public_status_card: fix uninitialized value warning --- templates/_public_status_card.html.ep | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/_public_status_card.html.ep b/templates/_public_status_card.html.ep index 510bf52..0bed878 100644 --- a/templates/_public_status_card.html.ep +++ b/templates/_public_status_card.html.ep @@ -72,7 +72,7 @@
% for my $station (@{$journey->{route_after}}) { - % if ($station->[0] eq $journey->{arr_name}) { + % if ($journey->{arr_name} and $station->[0] eq $journey->{arr_name}) { % last; % } % if (($station->[1]{rt_arr_countdown} // 0) > 0) { @@ -97,7 +97,7 @@
% for my $station (@{$journey->{route_after}}) { - % if ($station->[0] eq $journey->{arr_name}) { + % if ($journey->{arr_name} and $station->[0] eq $journey->{arr_name}) { % last; % } % if (($station->[1]{rt_arr_countdown} // 0) > 0) {