summaryrefslogtreecommitdiff
path: root/modules/comment/comment.module
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-11-02 23:20:28 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-11-02 23:20:28 +0000
commit6afea0a06499dc17fa1a4c9f4d4e210c477ba877 (patch)
treef457a62124c573fceb6cca58d0bf6a01431e161e /modules/comment/comment.module
parent1a7c7dd16aa1cfbe3bd6d34e91749b494b780535 (diff)
downloadbrdo-6afea0a06499dc17fa1a4c9f4d4e210c477ba877.tar.gz
brdo-6afea0a06499dc17fa1a4c9f4d4e210c477ba877.tar.bz2
#564642 by Scott Reynolds, Damien Tournoud, matt2000, and moshe weitzman: Remove previous content property from build functions so artifacts do not persist.
Diffstat (limited to 'modules/comment/comment.module')
-rw-r--r--modules/comment/comment.module5
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module
index 119b494ea..762c71749 100644
--- a/modules/comment/comment.module
+++ b/modules/comment/comment.module
@@ -839,9 +839,8 @@ function comment_build($comment, stdClass $node, $build_mode = 'full') {
* Build mode, e.g. 'full', 'teaser'...
*/
function comment_build_content($comment, stdClass $node, $build_mode = 'full') {
- if (empty($comment->content)) {
- $comment->content = array();
- }
+ // Remove previously built content, if exists.
+ $comment->content = array();
// Build comment body.
$comment->content['comment_body'] = array(