From 6afea0a06499dc17fa1a4c9f4d4e210c477ba877 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Mon, 2 Nov 2009 23:20:28 +0000 Subject: #564642 by Scott Reynolds, Damien Tournoud, matt2000, and moshe weitzman: Remove previous content property from build functions so artifacts do not persist. --- modules/comment/comment.module | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'modules/comment/comment.module') 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( -- cgit v1.2.3