summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--index.pl4
1 files changed, 3 insertions, 1 deletions
diff --git a/index.pl b/index.pl
index 3903dbe..db0abd2 100644
--- a/index.pl
+++ b/index.pl
@@ -271,7 +271,9 @@ sub get_filtered_departures {
my $line = $d->line;
my $platform
- = $d->can('platform') ? ( split( qr{ }, $d->platform ) )[-1] : q{};
+ = $d->can('platform')
+ ? ( split( qr{ }, $d->platform ) )[-1]
+ : ( $d->can('stop_indicator') ? $d->stop_indicator : q{} );
my $destination = $d->destination;
my $time = $d->time;
my $etr;