Issue #705892 follow-up by bfroehle, ELC: Safer method of instantiating the content variable in node.tpl.php.

8.0.x
webchick 2011-06-08 22:04:52 -07:00
parent 75b8f880fc
commit 002cf94d32
1 changed files with 1 additions and 1 deletions

View File

@ -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];
}