Using nodeaccess_userreference to give access to users on specific node (A), and nodeaccess_nodereference to pass along permissions to the nodes which reference A. I'm getting this error message:

warning: implode(): Invalid arguments passed in /var/www/html/cap/sites/all/modules/nodeaccess_nodereference/nodeaccess_nodereference.module on line 538.

It looks like implode() is complaining about an empty array.

CommentFileSizeAuthor
#1 warning-1087036-1.patch845 bytesmjoyce

Comments

mjoyce’s picture

StatusFileSize
new845 bytes

The patch attached fixes it. I hope I did the git stuff correctly.

danielb’s picture

Status: Active » Fixed

I think all we'd really need is to initialise the $ops variable to array() before the foreach loop. Implode can take empty arrays, but it cannot take arrays that don't exist!

I've made that change in the git repository and am confident it will be enough to remove the PHP notices in future releases.

Status: Fixed » Closed (fixed)

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