add_journey: Fix incorrect return in case of unmatched station
This commit is contained in:
parent
e07063c52c
commit
d77566bba4
1 changed files with 2 additions and 2 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue