diff options
Diffstat (limited to 'modules/comment/helpers')
-rw-r--r-- | modules/comment/helpers/comment.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/comment/helpers/comment.php b/modules/comment/helpers/comment.php index c0864fee..4bc77e57 100644 --- a/modules/comment/helpers/comment.php +++ b/modules/comment/helpers/comment.php @@ -52,7 +52,12 @@ class comment_Core { // @todo Figure out how to mock up the test of the spam_filter if (module::is_installed("spam_filter") && TEST_MODE == 0) { - SpamFilter::instance()->check_comment($comment); + try { + SpamFilter::instance()->check_comment($comment); + } catch (Exception $e) { + Kohana::log("error", print_r($e, 1)); + $comment->state = "unpublished"; + } } else { $comment->state = "published"; } |