summaryrefslogtreecommitdiff
path: root/lib/DBInfoscreen/Controller
diff options
context:
space:
mode:
Diffstat (limited to 'lib/DBInfoscreen/Controller')
-rw-r--r--lib/DBInfoscreen/Controller/Stationboard.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/DBInfoscreen/Controller/Stationboard.pm b/lib/DBInfoscreen/Controller/Stationboard.pm
index f1f51da..e9b95b8 100644
--- a/lib/DBInfoscreen/Controller/Stationboard.pm
+++ b/lib/DBInfoscreen/Controller/Stationboard.pm
@@ -1180,7 +1180,8 @@ sub train_details {
my $train_type = $res->{train_type} = $journey->type // q{};
my $train_no = $res->{train_no} = $journey->number // q{};
$res->{train_line} = $journey->line_no // q{};
- $self->stash( title => "${train_type} ${train_no}" );
+ $self->stash( title => $train_type . ' '
+ . ( $train_no || $res->{train_line} ) );
}
if ( not defined $journey->class ) {