We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57b31e6 commit fbb70f9Copy full SHA for fbb70f9
lib/output.php
@@ -74,7 +74,11 @@ trait Hm_List {
74
* @return void
75
*/
76
public static function add($string, $type = 'success') {
77
- self::$msgs[] = ['type' => $type, 'text' => self::str($string, false)];
+ $string = self::str($string, false);
78
+ $texts = self::get();
79
+ if (! in_array($string, $texts, true)) {
80
+ self::$msgs[] = ['type' => $type, 'text' => $string];
81
+ }
82
}
83
84
/**
0 commit comments