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

get_connecting_trains_p: handle uninitialized arr_countdown

parent dd151dc6
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -81,7 +81,9 @@ sub get_connecting_trains_p {
	$self->iris->get_departures_p(
		station    => $eva,
		lookbehind => 10,
		lookahead    => $can_check_in ? 40 : ( ${arr_countdown} / 60 + 40 ),
		lookahead  => $can_check_in
		? 40
		: ( ( ${arr_countdown} // 0 ) / 60 + 40 ),
		with_related => 1
	)->then(
		sub {