Closed (fixed)
Project:
Frequently Asked Questions
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 Nov 2008 at 17:50 UTC
Updated:
5 Jan 2009 at 22:43 UTC
fix attached.
| Comment | File | Size | Author |
|---|---|---|---|
| faq-fixes.patch | 1.14 KB | eMPee584 |
Comments
Comment #1
stella commentedCan you provide details on the php errors you are trying to fix?
Comment #2
eMPee584 commentedwell not every page that gets piped through preprocess_page is a node, so you have to check $variables['node'] exists, not assume it does and use it as boolean variable.. same for the second fix: you can't be sure the node object indeed does have links because you never know at which time in the rendering process the hook is processed...
Comment #3
stella commentedCommitted, along with coding style fixes and also applied the changes to the other template files that required them. Will be included in the next release.
Cheers,
Stella
Comment #5
stella commentedReleased in 6.x-1.8.