summaryrefslogtreecommitdiff
path: root/lib/DBInfoscreen/Controller/Stationboard.pm
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-06-03 15:11:27 +0200
committerDaniel Friesel <derf@finalrewind.org>2019-06-03 15:11:27 +0200
commitb0529c9c9b88a25942b4661f370cb78669d301b3 (patch)
tree889edef8aa45ae252624cfa338128afbfd98c488 /lib/DBInfoscreen/Controller/Stationboard.pm
parent86562f426d068b48849d0d268df179b46ed1a030 (diff)
Fix order of HIM messages
Diffstat (limited to 'lib/DBInfoscreen/Controller/Stationboard.pm')
-rw-r--r--lib/DBInfoscreen/Controller/Stationboard.pm8
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 );
}
}
}