[drupal-devel] [bug] No node-options settings generates error
jjeff
drupal-devel at drupal.org
Wed May 11 02:16:50 UTC 2005
Issue status update for http://drupal.org/node/22551
Project: Drupal
Version: cvs
Component: node system
Category: bug reports
Priority: critical
Assigned to: Anonymous
Reported by: jjeff
Updated by: jjeff
Status: patch
Attachment: http://drupal.org/files/issues/node_no-options.patch (1009 bytes)
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
jjeff
More information about the drupal-devel
mailing list