From 002cf94d320b714640b3af5551a07bb5652c191b Mon Sep 17 00:00:00 2001 From: webchick Date: Wed, 8 Jun 2011 22:04:52 -0700 Subject: [PATCH] Issue #705892 follow-up by bfroehle, ELC: Safer method of instantiating the content variable in node.tpl.php. --- modules/node/node.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/node/node.module b/modules/node/node.module index 2dd1926f1754..20fc37ec5e46 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]; }