diff options
| author | Daniel Friesel <derf@finalrewind.org> | 2019-11-26 18:35:51 +0100 | 
|---|---|---|
| committer | Daniel Friesel <derf@finalrewind.org> | 2019-11-26 18:35:51 +0100 | 
| commit | 5e03718f14e9d8888a3bd0407828abf01beeda96 (patch) | |
| tree | 5593ec751232ee91b997fcc84a74a245ad5b3bd5 | |
| parent | 4f0fee7783d3919110287ee9edd0c3a86e961814 (diff) | |
public_status_card: fix uninitialized value warning1.10.5
| -rw-r--r-- | templates/_public_status_card.html.ep | 4 | 
1 files 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 @@  				</div>  				<div class="center-align hide-on-small-only">  					% 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 @@  				</div>  				<div class="hide-on-med-and-up" style="margin-top: 2ex;">  					% 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) { | 
