If node types haven't been created yet, the following PHP warning appears:

Warning: array_intersect(): Argument #1 is not an array in nodetype_access_get_accessible_types() (line 135 of .../modules/nodetype_access/nodetype_access.module).

Comments

friedjoff’s picture

Status: Active » Needs review
StatusFileSize
new575 bytes

This patch adds an empty array as default value for node types.

nmandery’s picture

Status: Needs review » Reviewed & tested by the community
friedjoff’s picture

StatusFileSize
new568 bytes

The previous patch didn't took existing content types into account. Fixed in attached patch.

geek-merlin’s picture

Status: Reviewed & tested by the community » Fixed

thank you friedjoff, committed and attributed.

friedjoff’s picture

Thanks! Is it already pushed to drupal.org? Because I can't find a related commit.

Any plans for a new release?

geek-merlin’s picture

OK, it's in dev, i'll roll a new release when #1804052: Add "view own" functionality is in.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.