diff --git a/lib/output.php b/lib/output.php index 6d67f683a..36e3c79a8 100644 --- a/lib/output.php +++ b/lib/output.php @@ -74,7 +74,11 @@ trait Hm_List { * @return void */ public static function add($string, $type = 'success') { - self::$msgs[] = ['type' => $type, 'text' => self::str($string, false)]; + $string = self::str($string, false); + $texts = self::get(); + if (! in_array($string, $texts, true)) { + self::$msgs[] = ['type' => $type, 'text' => $string]; + } } /**