From d7218c0b165e60261663bddd7ec9376f692e13b7 Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Sun, 1 Jul 2007 09:08:03 +0000 Subject: [PATCH] if used more than once, do not print out notices. ;) git-svn-id: file:///svn/phpbb/trunk@7814 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/message_parser.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/phpBB/includes/message_parser.php b/phpBB/includes/message_parser.php index 649708aff3..3579467bff 100644 --- a/phpBB/includes/message_parser.php +++ b/phpBB/includes/message_parser.php @@ -1250,9 +1250,7 @@ class parse_message extends bbcode_firstpass } // Make sure the delimiter # is added in front and at the end of every element within $match - $match = explode(chr(0), '#' . implode('#' . chr(0) . '#', $match) . '#'); - - $this->message = trim(preg_replace($match, $replace, $this->message)); + $this->message = trim(preg_replace(explode(chr(0), '#' . implode('#' . chr(0) . '#', $match) . '#'), $replace, $this->message)); } }