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

CommentFileSizeAuthor
node_no-options.patch1009 bytesjjeff

Comments

chx’s picture

http://drupal.org/node/18663 is the general solution.