summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/comment/comment.module4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module
index 5a2a4473a..e00057506 100644
--- a/modules/comment/comment.module
+++ b/modules/comment/comment.module
@@ -1197,7 +1197,9 @@ function comment_render($node, $cid = 0) {
if (user_access('post comments') && $node->comment == COMMENT_NODE_OPEN && (variable_get('comment_form_location_' . $node->type, COMMENT_FORM_SEPARATE_PAGE) == COMMENT_FORM_BELOW) && !$reply) {
$output .= comment_form_box(array('nid' => $nid), t('Post new comment'));
}
- $output = theme('comment_wrapper', $output, $node);
+ if ($output) {
+ $output = theme('comment_wrapper', $output, $node);
+ }
}
return $output;