aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb
diff options
context:
space:
mode:
authorTristan Darricau <tristan.darricau@sensiolabs.com>2015-05-29 13:15:33 +0200
committerTristan Darricau <tristan.darricau@sensiolabs.com>2015-05-29 13:15:33 +0200
commit3c3b099f88471e05358fe3c01bb74caac69e89e7 (patch)
tree058cdfd316aff93577d4a4e4cab890f97d1f6dfc /phpBB/phpbb
parent835a2ebcb874377a7c450bea85b98d4d84cd0493 (diff)
parent97d05eb2350895f13872c8435f204796938b8b6f (diff)
downloadforums-3c3b099f88471e05358fe3c01bb74caac69e89e7.tar
forums-3c3b099f88471e05358fe3c01bb74caac69e89e7.tar.gz
forums-3c3b099f88471e05358fe3c01bb74caac69e89e7.tar.bz2
forums-3c3b099f88471e05358fe3c01bb74caac69e89e7.tar.xz
forums-3c3b099f88471e05358fe3c01bb74caac69e89e7.zip
Merge pull request #3622 from s9e/ticket/13860
[ticket/13860] Fixed array-to-string conversion
Diffstat (limited to 'phpBB/phpbb')
-rw-r--r--phpBB/phpbb/textformatter/s9e/parser.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/phpBB/phpbb/textformatter/s9e/parser.php b/phpBB/phpbb/textformatter/s9e/parser.php
index b7d0b2b90b..838c211e56 100644
--- a/phpBB/phpbb/textformatter/s9e/parser.php
+++ b/phpBB/phpbb/textformatter/s9e/parser.php
@@ -227,7 +227,13 @@ class parser implements \phpbb\textformatter\parser_interface
}
}
- return array_unique($errors);
+ // Deduplicate error messages. array_unique() only works on strings so we have to serialize
+ if (!empty($errors))
+ {
+ $errors = array_map('unserialize', array_unique(array_map('serialize', $errors)));
+ }
+
+ return $errors;
}
/**