diff options
author | webchick <webchick@24967.no-reply.drupal.org> | 2011-06-08 22:05:05 -0700 |
---|---|---|
committer | webchick <webchick@24967.no-reply.drupal.org> | 2011-06-08 22:05:05 -0700 |
commit | 2224962c5ed37076251da3429130de069e8e8ddd (patch) | |
tree | 0e294f0b4f8a6a06a7ccdcb54c5313ed657cabd2 /modules | |
parent | e45c7803249a2ea4a6abb464fce166ae92dc6674 (diff) | |
download | brdo-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.module | 2 |
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]; } |