summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--templates/journey.html.ep4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/journey.html.ep b/templates/journey.html.ep
index 09ad76d..ba5951e 100644
--- a/templates/journey.html.ep
+++ b/templates/journey.html.ep
@@ -259,10 +259,10 @@
% my $at_startstop = 0;
% my $i = 0;
% for my $station (@{$journey->{route}}) {
- % if ($i == $journey->{route_dep_index}) {
+ % if (defined $journey->{route_dep_index} and $i == $journey->{route_dep_index}) {
% $within = 1; $at_startstop = 1;
% }
- % elsif ($i == $journey->{route_arr_index}) {
+ % elsif (defined $journey->{route_arr_index} and $i == $journey->{route_arr_index}) {
% $within = 0; $at_startstop = 1;
% }
% else {