mirror of
https://github.com/derf/travelynx
synced 2024-09-21 07:01:57 +00:00
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} );
|
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 = {
|
||||||
|
|
Loading…
Reference in a new issue