Commit d77566bb authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

add_journey: Fix incorrect return in case of unmatched station

parent e07063c5
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -234,10 +234,10 @@ sub startup {
			my $arr_station = get_station( $opt{arr_station} );

			if ( not $dep_station ) {
				return ( undef, undef, 'Unbekannter Startbahnhof' );
				return ( undef, 'Unbekannter Startbahnhof' );
			}
			if ( not $arr_station ) {
				return ( undef, undef, 'Unbekannter Zielbahnhof' );
				return ( undef, 'Unbekannter Zielbahnhof' );
			}

			my $entry = {