runnig PHP 5.3

Solved by changing following code ...

/**
 * Implementation of hook_node_grants().
 */
function nodeaccess_nodereference_node_grants($account, $op) {
  static $grants[$account->uid][$op] = NULL; 

changed to

/**
 * Implementation of hook_node_grants().
 */
function nodeaccess_nodereference_node_grants($account, $op) {
  static $grants;
  $grants[$account->uid][$op] = NULL; 

Description:
static not allowed in combination with pointer -> ???
Code needs review

Comments

danielb’s picture

Status: Active » Fixed

Your fix will force the very next line after that to always evaluate to true.

I've changed it to remove the initialisation and for the next check to be an isset().

Committed to CVS.

Status: Fixed » Closed (fixed)

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