Unverified Commit 3ac61f8a authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

Fix route_end handling for arrivals mode

parent c2817912
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -166,8 +166,14 @@ sub new {
	}

	if ( $journey->{stbStop} ) {
		if ( $hafas->{arrivals} ) {
			$route_end = $stops[0]->{name};
			pop(@stops);
		}
		else {
			shift(@stops);
		}
	}

	my $ref = {
		datetime_now           => $hafas->{now},