add_journey: Fix incorrect return in case of unmatched station

This commit is contained in:
Daniel Friesel 2019-04-26 19:56:03 +02:00
parent e07063c52c
commit d77566bba4

View file

@ -234,10 +234,10 @@ sub startup {
my $arr_station = get_station( $opt{arr_station} ); my $arr_station = get_station( $opt{arr_station} );
if ( not $dep_station ) { if ( not $dep_station ) {
return ( undef, undef, 'Unbekannter Startbahnhof' ); return ( undef, 'Unbekannter Startbahnhof' );
} }
if ( not $arr_station ) { if ( not $arr_station ) {
return ( undef, undef, 'Unbekannter Zielbahnhof' ); return ( undef, 'Unbekannter Zielbahnhof' );
} }
my $entry = { my $entry = {