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

itdOdvAssignedStops can be a hashref rather than a listref...

parent 128e6283
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -376,8 +376,14 @@ sub stops {
		return @{ $self->{stops} };
	}

	my $stops = $self->{response}{dm}{itdOdvAssignedStops} // [];

	if ( ref($stops) eq 'HASH' ) {
		$stops = [$stops];
	}

	my @stops;
	for my $stop ( @{ $self->{response}{dm}{itdOdvAssignedStops} // [] } ) {
	for my $stop ( @{$stops} ) {
		push(
			@stops,
			Travel::Status::DE::EFA::Stop->new(