diff options
author | Daniel Friesel <derf@finalrewind.org> | 2019-04-26 19:56:03 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2019-04-26 19:56:03 +0200 |
commit | d77566bba4fe89e6ae7ef6c0c1fb2bac6aeb7668 (patch) | |
tree | 6367e5e179d0057235fff2db22232cdedc653c25 | |
parent | e07063c52c51569b5f252a202f5d71b5f70a73e7 (diff) |
add_journey: Fix incorrect return in case of unmatched station
-rwxr-xr-x | lib/Travelynx.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Travelynx.pm b/lib/Travelynx.pm index 017a2d4..ce2d739 100755 --- a/lib/Travelynx.pm +++ b/lib/Travelynx.pm @@ -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 = { |