Needs review
Project:
Content Construction Kit (CCK)
Version:
6.x-2.6
Component:
content.module
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Mar 2010 at 13:18 UTC
Updated:
11 Mar 2010 at 13:18 UTC
I have found a notice error in the content.module.
Fix:
diff -r sites/all/modules/cck/content.module
--- old /sites/all/modules/cck/content.module
+++ new /sites/all/modules/cck/content.module
@@ -333,7 +333,12 @@ function content_view(&$node, $teaser =
// Merge fields.
$additions = _content_field_invoke_default('view', $node, $teaser, $page);
- $node->content = array_merge((array) $node->content, $additions);
+ if (isset($node->content)) {
+ $node->content = array_merge((array) $node->content, $additions);
+ }
+ else {
+ $node->content = $additions;
+ }
}
/**