Update bbcode.php

This commit is contained in:
Roman Kelesidis 2024-06-11 22:30:04 +07:00
parent e92a927969
commit 2da8e3d90e

View File

@ -633,7 +633,7 @@ class bbcode
{
return $text;
}
if (is_null($spam_words))
if (is_null($spam_words) && file_exists($bb_cfg['spam_filter_file_path']))
{
$spam_words = file_get_contents($bb_cfg['spam_filter_file_path']);
$spam_words = strtolower($spam_words);