summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2010-11-15 00:49:46 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2010-11-15 00:49:46 +0000
commit818de3a656a0c74efb77edf5844c0220c6fffe90 (patch)
tree7451e1a94fc3af7c526d4bb875384cfde82bf639
parent14d2f790ccec2c9f8c5b9e977c96197e6ae424b2 (diff)
downloadbrdo-818de3a656a0c74efb77edf5844c0220c6fffe90.tar.gz
brdo-818de3a656a0c74efb77edf5844c0220c6fffe90.tar.bz2
#963612 by chx, sun: Stop notices in templates if comment form doesn't exist.
-rw-r--r--modules/comment/comment.module2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module
index ea79ea521..31738a566 100644
--- a/modules/comment/comment.module
+++ b/modules/comment/comment.module
@@ -2334,6 +2334,8 @@ function template_preprocess_comment_wrapper(&$variables) {
// Provide contextual information.
$variables['node'] = $variables['content']['#node'];
$variables['display_mode'] = variable_get('comment_default_mode_' . $variables['node']->type, COMMENT_MODE_THREADED);
+ // The comment form is optional and may not exist.
+ $variables['content'] += array('comment_form' => array());
}
/**