From 2da8e3d90e2685beece071e9d30c96dbc38f106e Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Tue, 11 Jun 2024 22:30:04 +0700 Subject: [PATCH] Update bbcode.php --- library/includes/bbcode.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);