Closed (fixed)
Project:
Node access node reference
Version:
6.x-1.0-beta6
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 Dec 2010 at 17:50 UTC
Updated:
10 Jan 2011 at 01:00 UTC
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
Comment #1
danielb commentedYour 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.