diff options
Diffstat (limited to 'lib/DBInfoscreen')
-rw-r--r-- | lib/DBInfoscreen/Controller/Stationboard.pm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/DBInfoscreen/Controller/Stationboard.pm b/lib/DBInfoscreen/Controller/Stationboard.pm index 5db9bbd..7657a85 100644 --- a/lib/DBInfoscreen/Controller/Stationboard.pm +++ b/lib/DBInfoscreen/Controller/Stationboard.pm @@ -959,15 +959,15 @@ sub handle_request { } } if ( $him and @{$him} ) { + my @him_messages; $departures[-1]{messages}{him} = $him; for my $message ( @{$him} ) { if ( $message->{display} ) { - unshift( - @{ $departures[-1]{moreinfo} }, - [ $message->{header}, $message->{lead} ] - ); + push( @him_messages, + [ $message->{header}, $message->{lead} ] ); } } + unshift( @{ $departures[-1]{moreinfo} }, @him_messages ); } } } |