summaryrefslogtreecommitdiff
path: root/templates/single.html.ep
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2015-09-18 17:03:53 +0200
committerDaniel Friesel <derf@finalrewind.org>2015-09-18 17:03:53 +0200
commitb2f12dad068aa34e99e800f9318fe97f0ad5597d (patch)
tree31452da60e285d109272a364236c240fbc8c71d4 /templates/single.html.ep
parent1d864aacdc8718e22e6c941c319519c64f0d2663 (diff)
switch to HAFAS backend
Diffstat (limited to 'templates/single.html.ep')
-rw-r--r--templates/single.html.ep4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/single.html.ep b/templates/single.html.ep
index 9c60f20..a4e370c 100644
--- a/templates/single.html.ep
+++ b/templates/single.html.ep
@@ -15,9 +15,9 @@
%= $departure->{train}
</div>
<div class="via">
-% my $via_max = @{$departure->{via}};
+% my $via_max = @{$departure->{via} // []};
% my $via_cur = 0;
-% for my $stop (@{$departure->{via}}) {
+% for my $stop (@{$departure->{via} // []}) {
% $via_cur++;
<span><%= $stop %><% if ($via_cur < $via_max) { %> - <% } %></span>
% }