diff --git a/module/VuFind/src/VuFind/View/Helper/Root/Flashmessages.php b/module/VuFind/src/VuFind/View/Helper/Root/Flashmessages.php
index 1176d168909f490db16bc3e1fac0e6d82912f83b..d1bde50ac50525d9e7e17c1e3c4f6fa6bdddc20e 100644
--- a/module/VuFind/src/VuFind/View/Helper/Root/Flashmessages.php
+++ b/module/VuFind/src/VuFind/View/Helper/Root/Flashmessages.php
@@ -70,7 +70,7 @@ class Flashmessages extends AbstractHelper
             $messages = array_merge(
                 $this->fm->getMessages(), $this->fm->getCurrentMessages()
             );
-            foreach ($messages as $msg) {
+            foreach (array_unique($messages) as $msg) {
                 $html .= '<div class="' . $ns . '">';
                 // Advanced form:
                 if (is_array($msg)) {