Unverified Commit 237e2e70 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

Journeys: workaround for very old checkins that lack an arrival time

parent 6f46ecec
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1444,7 +1444,8 @@ sub get_travel_distance {
		(
			( $_->[1] and $_->[1] == $to_eva or $_->[0] eq $to )
			  and ( not( defined $_->[2]{sched_arr} or defined $_->[2]{rt_arr} )
				or ( $_->[2]{sched_arr} // $_->[2]{rt_arr} ) == $to_ts )
				or ( $_->[2]{sched_arr} // $_->[2]{rt_arr} )
				== ( $to_ts // 0 ) )
		)
	}
	@{$route_ref};