mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
if used more than once, do not print out notices. ;)
git-svn-id: file:///svn/phpbb/trunk@7814 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
5634fad4ae
commit
d7218c0b16
1 changed files with 1 additions and 3 deletions
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue