[ticket/14426] Fixed undefined offset error

PHPBB3-14426
This commit is contained in:
JoshyPHP 2016-04-03 09:22:21 +02:00 committed by Marc Alexander
parent 9dad16c5a6
commit 2505aaa9d6

View file

@ -226,6 +226,11 @@ class bbcode
),
'preg' => array(
'#\[quote(?:="(.*?)")?:$uid\]((?!\[quote(?:=".*?")?:$uid\]).)?#is' => function ($match) {
if (!isset($match[2]))
{
$match[2] = '';
}
return $this->bbcode_second_pass_quote($match[1], $match[2]);
},
)