mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-08 17:56:52 +02:00
Allow "0" as censor word and replacement.
Only obtain word censor list if text is not empty. git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10039 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -685,6 +685,12 @@ function censor_text($text)
|
||||
{
|
||||
static $censors;
|
||||
|
||||
// Nothing to do?
|
||||
if ($text === '')
|
||||
{
|
||||
return '';
|
||||
}
|
||||
|
||||
// We moved the word censor checks in here because we call this function quite often - and then only need to do the check once
|
||||
if (!isset($censors) || !is_array($censors))
|
||||
{
|
||||
|
Reference in New Issue
Block a user