Closed (fixed)
Project:
Protected Node
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Mar 2012 at 00:22 UTC
Updated:
14 May 2012 at 12:30 UTC
I'm getting this error though it appears to work:
Notice: Undefined variable: cancel in protected_node_enterpassword() (line 132 of /xxxxx/sites/default/modules/protected_node/protected_node.redirect.inc).
Note that I redacted the full path that was given for purposes here.
Comments
Comment #1
Syd Barrett commentedYes, it works. I'm trying to understand the problem.
At the moment and can just add "display:none"...
Comment #2
phprf commentedI don't know if this is a good fix or not, but for what it is worth...on line 132 of protected_node.redirect.inc change:
if ($cancel) {To:
if (isset($cancel)) {That fixed my problem. At least, it has for now!
Blessings, phprf
Comment #3
AlexisWilke commentedGood point. There is one case when $cancel doesn't get defined. I used !empty() in version 6.x instead just in case the $_GET variable was empty or just 0. I leave the status as active for 7.x to get fixed too.
Thank you.
Alexis Wilke
Comment #4
timefor commented#2 worked for me.
Comment #5
zilverdistel commentedI committed the "if (!empty())" to dev: http://drupalcode.org/project/protected_node.git/commit/1d65f94.