Closed (fixed)
Project:
Content Construction Kit (CCK)
Version:
5.x-1.x-dev
Component:
content.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Jan 2007 at 07:09 UTC
Updated:
21 Jan 2007 at 02:32 UTC
When installing both CCK and Categories, an error occurs on line 559 of content.module when attempting to create a container or category. The fix is to check the $type['fields'] for having contents before doing a foreach.
To fix, before line 559, add
if (count($type['fields']) == 0) return $return;
There may be other spots in the code that don't check this, I didn't review the entire module.
Comments
Comment #1
yched commentedThis was probably not specific to Categories.
Fixed. Thanks !
Comment #2
yched commentedComment #3
(not verified) commented