mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-26 03:48:53 +00:00
[ticket/13860] Fixed array-to-string conversion
PHPBB3-13860
This commit is contained in:
parent
e62eafb77b
commit
e0f7c225bc
1 changed files with 7 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue