From 4ebdf7232ce3772353e6a16896fc50fa43a77b76 Mon Sep 17 00:00:00 2001 From: saxmatt Date: Fri, 11 Feb 2005 02:16:38 +0000 Subject: [PATCH] http://mosquito.wordpress.org/view.php?id=778 git-svn-id: http://svn.automattic.com/wordpress/trunk@2261 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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;