Commit ba142938 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

_map_infobox: Fix crash when arrival is undefined (e.g. due to cancellation)

parent 510070c8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -37,7 +37,7 @@ data-poly="<%= stash('ajax_polyline') %>"
			%= sprintf('(%+d)', $next->{station}{arr_delay})
		% }
	% }
	% elsif ($next->{type} eq 'present') {
	% elsif ($next->{type} eq 'present' and $next->{station}{arr}) {
		Zug steht in
		<strong><%= $next->{station}{arr}->strftime('%H:%M') %></strong>
		auf Gleis <strong><%= $next->{station}{platform} %></strong>