Closed (fixed)
Project:
Protected Node
Version:
6.x-1.5
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
17 Jun 2010 at 09:01 UTC
Updated:
29 Apr 2011 at 11:11 UTC
Hi tolmi,
I was getting errors on line 85 (from the CVS version).
Looking at the code, the $form may not have a ['type'] entry. Also, the node type may not include the resulting type (especially if NULL).
On top of that, you do not need to gather the node_types() if the test fails. So moving those inside prevents the E_NOTICE errors and saves time on all those pages that are not nodes.
Thank you.
Alexis Wilke
| Comment | File | Size | Author |
|---|---|---|---|
| protected_node-e_notices-6.x.patch | 1 KB | AlexisWilke |
Comments
Comment #1
AlexisWilke commentedThis is now checked in.
Thank you.
Alexis Wilke