Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions libraries/src/Application/CMSApplication.php
Original file line number Diff line number Diff line change
Expand Up @@ -249,10 +249,8 @@ public function enqueueMessage($msg, $type = self::MSG_INFO)
'type' => $inputFilter->clean(strtolower($type), 'cmd'),
];

// For empty queue, if messages exists in the session, enqueue them first.
$messages = $this->getMessageQueue();

if (!\in_array($message, $this->messageQueue)) {
// Get the messages of the session and add the new message if it is not already in the queue.
if (!\in_array($message, $this->getMessageQueue())) {
// Enqueue the message.
$this->messageQueue[] = $message;
}
Expand Down