Skip to content
Snippets Groups Projects
Commit f4c13c82 authored by Demian Katz's avatar Demian Katz
Browse files

Suppress duplicate flash messages.

parent abb99e92
No related merge requests found
...@@ -70,7 +70,7 @@ class Flashmessages extends AbstractHelper ...@@ -70,7 +70,7 @@ class Flashmessages extends AbstractHelper
$messages = array_merge( $messages = array_merge(
$this->fm->getMessages(), $this->fm->getCurrentMessages() $this->fm->getMessages(), $this->fm->getCurrentMessages()
); );
foreach ($messages as $msg) { foreach (array_unique($messages) as $msg) {
$html .= '<div class="' . $ns . '">'; $html .= '<div class="' . $ns . '">';
// Advanced form: // Advanced form:
if (is_array($msg)) { if (is_array($msg)) {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment