Closed (won't fix)
Project:
Content Construction Kit (CCK)
Version:
5.x-1.6-1
Component:
CCK in core
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 Apr 2008 at 20:19 UTC
Updated:
11 Jan 2012 at 16:32 UTC
The following code at or near line 540 of content.module has been causing problems:
$node_field = isset($node->$field['field_name']) ? $node->$field['field_name'] : array();
It does not check to see if the field member is itself an array. If it is a string or something else, it causes PHP to complain because a few lines down there is a call cotent_field() which will attempt to iterate over something that isn't a variable. This isn't a problem for people who use CCK for general use, but programmers who are extending or implementing CCK's functionality would do better off if a type check were placed here.
Comments
Comment #1
karens commentedThe D5 version is no longer being supported. Sorry.