From b2f12dad068aa34e99e800f9318fe97f0ad5597d Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 18 Sep 2015 17:03:53 +0200 Subject: switch to HAFAS backend --- templates/multi.html.ep | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'templates/multi.html.ep') diff --git a/templates/multi.html.ep b/templates/multi.html.ep index 6e58325..704c589 100644 --- a/templates/multi.html.ep +++ b/templates/multi.html.ep @@ -21,9 +21,9 @@
-% 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++; <%= $stop %><% if ($via_cur < $via_max) { %> - <% } %> % } -- cgit v1.2.3