From 95051838d25f41453b0a94d487387cdce23e25cd Mon Sep 17 00:00:00 2001
From: Demian Katz <demian.katz@villanova.edu>
Date: Fri, 6 Feb 2015 09:29:41 -0500
Subject: [PATCH] Fixed bug -- array_unique mishandling arrays of arrays.

---
 module/VuFind/src/VuFind/View/Helper/Root/Flashmessages.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/module/VuFind/src/VuFind/View/Helper/Root/Flashmessages.php b/module/VuFind/src/VuFind/View/Helper/Root/Flashmessages.php
index a863a9a702b..1ec7cf97d73 100644
--- a/module/VuFind/src/VuFind/View/Helper/Root/Flashmessages.php
+++ b/module/VuFind/src/VuFind/View/Helper/Root/Flashmessages.php
@@ -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)) {
-- 
GitLab