Notice: Undefined variable: pid in simple_access_node_delete() line 279
db_delete($table)
->condition('pid', $pid)
->execute();
Should be nid?
db_delete($table)
->condition('nid', $node->nid)
->execute();
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | simple_access.patch | 564 bytes | cooperq |
Comments
Comment #1
Wolfflow commentedsame error
Comment #2
sylv3st3r commentedJust change the code. I have a working D7 modules, well with some bugs. Can't contact this module author...
Comment #3
Wolfflow commented@sylv3st3r thx
Comment #4
Jiri Volf commentedThanks, works for me too.
Comment #5
cooperq commentedHere is a patch so the developer can integrate.
Comment #6
andresp commentedthis also works for me
Comment #7
damien_vancouver commentedThe above fix worked for me too.
Then I noticed that it's actually in the 7.x-2.x-dev branch, as of commit 3b31876.
Therefore I'm marking this issue as fixed. Using 7.x-2.x-dev instead of 7.x-2.0-beta1 will remove the problem.