summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2020-09-18 22:24:42 +0200
committerDaniel Friesel <derf@finalrewind.org>2020-09-18 22:24:42 +0200
commitba1429382f8e0521d5c454f4ff9dc32868a1a935 (patch)
tree433a2cfea7d40ae98c72411fdd29e3b4da6ef1dc /templates
parent510070c82ce1207bd91c17a84e6bf68d07bb80e6 (diff)
_map_infobox: Fix crash when arrival is undefined (e.g. due to cancellation)
Diffstat (limited to 'templates')
-rw-r--r--templates/_map_infobox.html.ep2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/_map_infobox.html.ep b/templates/_map_infobox.html.ep
index 8f66a6f..f1da392 100644
--- a/templates/_map_infobox.html.ep
+++ b/templates/_map_infobox.html.ep
@@ -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>