diff options
author | Daniel Friesel <derf@finalrewind.org> | 2015-09-18 17:03:53 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2015-09-18 17:03:53 +0200 |
commit | b2f12dad068aa34e99e800f9318fe97f0ad5597d (patch) | |
tree | 31452da60e285d109272a364236c240fbc8c71d4 /templates/clean.html.ep | |
parent | 1d864aacdc8718e22e6c941c319519c64f0d2663 (diff) |
switch to HAFAS backend
Diffstat (limited to 'templates/clean.html.ep')
-rw-r--r-- | templates/clean.html.ep | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/clean.html.ep b/templates/clean.html.ep index a05cc08..43f3c54 100644 --- a/templates/clean.html.ep +++ b/templates/clean.html.ep @@ -7,9 +7,9 @@ % for my $departure (@{$departures}) { % $i++; % my $route_str = q{}; -% 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++; % $route_str .= $stop . ($via_cur < $via_max ? ' - ' : q{}); % } |