summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-04-26 19:56:03 +0200
committerDaniel Friesel <derf@finalrewind.org>2019-04-26 19:56:03 +0200
commitd77566bba4fe89e6ae7ef6c0c1fb2bac6aeb7668 (patch)
tree6367e5e179d0057235fff2db22232cdedc653c25 /lib
parente07063c52c51569b5f252a202f5d71b5f70a73e7 (diff)
add_journey: Fix incorrect return in case of unmatched station
Diffstat (limited to 'lib')
-rwxr-xr-xlib/Travelynx.pm4
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 = {