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).
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | nodetype_access-empty_types-1817880-3.patch | 568 bytes | friedjoff |
| #1 | nodetype_access-empty_types-1817880-1.patch | 575 bytes | friedjoff |
Comments
Comment #1
friedjoff commentedThis patch adds an empty array as default value for node types.
Comment #2
nmandery commentedComment #3
friedjoff commentedThe previous patch didn't took existing content types into account. Fixed in attached patch.
Comment #4
geek-merlinthank you friedjoff, committed and attributed.
Comment #5
friedjoff commentedThanks! Is it already pushed to drupal.org? Because I can't find a related commit.
Any plans for a new release?
Comment #6
geek-merlinOK, it's in dev, i'll roll a new release when #1804052: Add "view own" functionality is in.