1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-06 15:45:34 +02:00

[ticket/13860] Fixed array-to-string conversion

PHPBB3-13860
This commit is contained in:
JoshyPHP 2015-05-28 12:23:45 +02:00
parent e62eafb77b
commit e0f7c225bc

View File

@ -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;
} }
/** /**