From 2505aaa9d677e1cb86684500b5f1ae9b04aae0f6 Mon Sep 17 00:00:00 2001 From: JoshyPHP Date: Sun, 3 Apr 2016 09:22:21 +0200 Subject: [PATCH] [ticket/14426] Fixed undefined offset error PHPBB3-14426 --- phpBB/includes/bbcode.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/phpBB/includes/bbcode.php b/phpBB/includes/bbcode.php index e8969e552e..4b2aa90ebc 100644 --- a/phpBB/includes/bbcode.php +++ b/phpBB/includes/bbcode.php @@ -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]); }, )