diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-04-04 12:35:16 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-04-04 12:35:16 +0000 |
commit | 562f0ae344b408bb7bba86c12393bbd062cc6da5 (patch) | |
tree | 6f271e8a1ef1066b91233605d967df2dca4e9c1e /modules/comment/comment.module | |
parent | 4d2072c958aeee67257a1083ca027e04e165f917 (diff) | |
download | brdo-562f0ae344b408bb7bba86c12393bbd062cc6da5.tar.gz brdo-562f0ae344b408bb7bba86c12393bbd062cc6da5.tar.bz2 |
- Patch #372414 by Todd Nienkerk, JohnAlbin: don't output empty comments.
Diffstat (limited to 'modules/comment/comment.module')
-rw-r--r-- | modules/comment/comment.module | 4 |
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; |