mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-19 09:48:53 +00:00
Merge pull request #4091 from marc1706/ticket/14373
[ticket/14373] Do not pass arrays to strpos() * marc1706/ticket/14373: [ticket/14373] Do not pass arrays to strpos()
This commit is contained in:
commit
332ca57942
1 changed files with 1 additions and 1 deletions
|
@ -101,7 +101,7 @@ abstract class iohandler_base implements iohandler_interface
|
|||
*/
|
||||
public function add_error_message($error_title, $error_description = false)
|
||||
{
|
||||
if (strpos($error_title, '<br />') !== false)
|
||||
if (!is_array($error_title) && strpos($error_title, '<br />') !== false)
|
||||
{
|
||||
$error_title = strip_tags(htmlspecialchars_decode($error_title));
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue