summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorwebchick <webchick@24967.no-reply.drupal.org>2011-06-08 22:05:05 -0700
committerwebchick <webchick@24967.no-reply.drupal.org>2011-06-08 22:05:05 -0700
commit2224962c5ed37076251da3429130de069e8e8ddd (patch)
tree0e294f0b4f8a6a06a7ccdcb54c5313ed657cabd2 /modules
parente45c7803249a2ea4a6abb464fce166ae92dc6674 (diff)
downloadbrdo-2224962c5ed37076251da3429130de069e8e8ddd.tar.gz
brdo-2224962c5ed37076251da3429130de069e8e8ddd.tar.bz2
Issue #705892 follow-up by bfroehle, ELC: Safer method of instantiating the content variable in node.tpl.php.
Diffstat (limited to 'modules')
-rw-r--r--modules/node/node.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/node/node.module b/modules/node/node.module
index 2dd1926f1..20fc37ec5 100644
--- a/modules/node/node.module
+++ b/modules/node/node.module
@@ -1455,7 +1455,7 @@ function template_preprocess_node(&$variables) {
$variables = array_merge((array) $node, $variables);
// Helpful $content variable for templates.
- $variables['content'] = array();
+ $variables += array('content' => array());
foreach (element_children($variables['elements']) as $key) {
$variables['content'][$key] = $variables['elements'][$key];
}