diff options
author | JoshyPHP <s9e.dev@gmail.com> | 2015-05-28 12:23:45 +0200 |
---|---|---|
committer | JoshyPHP <s9e.dev@gmail.com> | 2015-05-28 12:24:14 +0200 |
commit | e0f7c225bc8f6cf8e62dcfc146bdd630e15b6e22 (patch) | |
tree | a56cae1271391ae96f069cb013afb7cd88b4f0db /phpBB/phpbb/textformatter | |
parent | e62eafb77b14bee85a53ef71806b5c036b96991f (diff) | |
download | forums-e0f7c225bc8f6cf8e62dcfc146bdd630e15b6e22.tar forums-e0f7c225bc8f6cf8e62dcfc146bdd630e15b6e22.tar.gz forums-e0f7c225bc8f6cf8e62dcfc146bdd630e15b6e22.tar.bz2 forums-e0f7c225bc8f6cf8e62dcfc146bdd630e15b6e22.tar.xz forums-e0f7c225bc8f6cf8e62dcfc146bdd630e15b6e22.zip |
[ticket/13860] Fixed array-to-string conversion
PHPBB3-13860
Diffstat (limited to 'phpBB/phpbb/textformatter')
-rw-r--r-- | phpBB/phpbb/textformatter/s9e/parser.php | 8 |
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; } /** |