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

Fixed bug -- array_unique mishandling arrays of arrays.

parent 2e3acb2d
No related merge requests found
......@@ -82,7 +82,7 @@ class Flashmessages extends AbstractHelper
$messages = array_merge(
$this->fm->getMessages(), $this->fm->getCurrentMessages()
);
foreach (array_unique($messages) as $msg) {
foreach (array_unique($messages, SORT_REGULAR) as $msg) {
$html .= '<div class="' . $this->getClassForNamespace($ns) . '">';
// Advanced form:
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