diff options
Diffstat (limited to 'modules/comment/comment.module')
-rw-r--r-- | modules/comment/comment.module | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module index 313b163b7..13e272ecd 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -2221,7 +2221,7 @@ function comment_unpublish_by_keyword_action_submit($form, $form_state) { */ function comment_unpublish_by_keyword_action($comment, $context) { foreach ($context['keywords'] as $keyword) { - if (strstr($comment->comment, $keyword) || strstr($comment->subject, $keyword)) { + if (strpos($comment->comment, $keyword) !== FALSE || strpos($comment->subject, $keyword) !== FALSE) { db_update('comment') ->fields(array('status' => COMMENT_NOT_PUBLISHED,)) ->condition('cid', $comment->cid) |