public_status_card: fix uninitialized value warning

This commit is contained in:
Daniel Friesel 2019-11-26 18:35:51 +01:00
parent 4f0fee7783
commit 5e03718f14

View file

@ -72,7 +72,7 @@
</div> </div>
<div class="center-align hide-on-small-only"> <div class="center-align hide-on-small-only">
% for my $station (@{$journey->{route_after}}) { % 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; % last;
% } % }
% if (($station->[1]{rt_arr_countdown} // 0) > 0) { % if (($station->[1]{rt_arr_countdown} // 0) > 0) {
@ -97,7 +97,7 @@
</div> </div>
<div class="hide-on-med-and-up" style="margin-top: 2ex;"> <div class="hide-on-med-and-up" style="margin-top: 2ex;">
% for my $station (@{$journey->{route_after}}) { % 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; % last;
% } % }
% if (($station->[1]{rt_arr_countdown} // 0) > 0) { % if (($station->[1]{rt_arr_countdown} // 0) > 0) {