Commit 9d0af20c authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

only show ambiguous page if the input -really- was ambiguous

parent 257a4ec3
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -34,8 +34,12 @@ sub handle_no_results {

	my @candidates = map { [ $_->[1], $_->[0] ] }
	  Travel::Status::DE::IRIS::Stations::get_station($station);
	if ( @candidates > 1
		or ( @candidates == 1 and $candidates[0][1] ne $station ) )
	if (
		@candidates > 1
		or (    @candidates == 1
			and $candidates[0][0] ne $station
			and $candidates[0][1] ne $station )
	  )
	{
		$self->render(
			'landingpage',