diff --git a/library/includes/bbcode.php b/library/includes/bbcode.php index 9ea01c1f..d0f0d416 100644 --- a/library/includes/bbcode.php +++ b/library/includes/bbcode.php @@ -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);