summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/comment/comment.module7
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module
index 6272aa436..c89d2f1d9 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();
+ }
}
}