Closed (duplicate)
Project:
Drupal core
Version:
x.y.z
Component:
node system
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 May 2005 at 02:16 UTC
Updated:
11 May 2005 at 08:33 UTC
When there are no node options (such as 'published', 'in queue', etc) set for a node-type, the variable_get() in line 1327 does not return an array. So all of the in_array() functions that follow generate errors.
Here is a patch that substitutes an empty array for $node_options if it isn't an array. This fixes the problem.
-Jeff
| Comment | File | Size | Author |
|---|---|---|---|
| node_no-options.patch | 1009 bytes | jjeff |
Comments
Comment #1
chx commentedhttp://drupal.org/node/18663 is the general solution.