summaryrefslogtreecommitdiff
path: root/index.pl
diff options
context:
space:
mode:
Diffstat (limited to 'index.pl')
-rw-r--r--index.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/index.pl b/index.pl
index 46f83dd..81217b0 100644
--- a/index.pl
+++ b/index.pl
@@ -92,7 +92,7 @@ sub get_results {
my $status;
if ( $backend eq 'hafas' ) {
$status = Travel::Status::DE::HAFAS->new(
- station => "${stop}, ${city}",
+ station => ( $city ? "${city} ${stop}" : $stop ),
excluded_mots => [qw[ice ic_ec d regio]],
service => $sub_backend,
);