From 68c44682ba7dd893ff1b7685d323c06cd191715c Mon Sep 17 00:00:00 2001 From: Matt Mullenweg Date: Fri, 11 Feb 2005 02:16:38 +0000 Subject: [PATCH] http://mosquito.wordpress.org/view.php?id=778 git-svn-id: https://develop.svn.wordpress.org/trunk@2261 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/classes.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wp-includes/classes.php b/wp-includes/classes.php index e6c960ddbc..1c1f49b7dd 100644 --- a/wp-includes/classes.php +++ b/wp-includes/classes.php @@ -679,6 +679,8 @@ class retrospam_mgr { foreach( $this->comment_list as $comment ) { if( $comment->approved == 1 ) { foreach( $this->spam_words as $word ) { + if ( empty( $word ) ) + continue; $fulltext = strtolower($comment->email.' '.$comment->url.' '.$comment->ip.' '.$comment->text); if( strpos( $fulltext, strtolower(trim($word)) ) != FALSE ) { $this->found_comments[] = $comment->ID;