diff --git a/modules/comment/comment.module b/modules/comment/comment.module index 6272aa4369f3f9a105fb78f2b7c3a6d8586db69f..c89d2f1d949c9196b81de76315bab0cd3cfcfb68 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -328,7 +328,12 @@ function comment_nodeapi(&$node, $op, $arg = 0) { return format_plural($comments, '1 comment', '%count comments'); case 'rss item': - return array(array('key' => 'comments', 'value' => url('node/'. $node->nid, NULL, 'comment', TRUE))); + if ($node->comment != COMMENT_NODE_DISABLED) { + return array(array('key' => 'comments', 'value' => url('node/'. $node->nid, NULL, 'comment', TRUE))); + } + else { + return array(); + } } }