Closed (won't fix)
Project:
Panels
Version:
5.x-2.x-dev
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 Nov 2007 at 16:59 UTC
Updated:
8 Nov 2007 at 01:21 UTC
The attached patch will initialize the variable and prevent a php warning. It looks like the var should get initialized from all code paths I could see, yet I do get the warning. Since there are array initializations in other places that could theoretically pass an empty $args array to this function, I hope that the initialization here is acceptable.
warning: Missing argument 2 for panels_page_view_page() in /home/clients/websites/w_cbi/sites/cbi-dev.civicactions.net/modules/contrib-5--2/panels/panels_page/panels_page.module on line 608.
| Comment | File | Size | Author |
|---|---|---|---|
| panels_page_view_page_init.patch | 690 bytes | douggreen |
Comments
Comment #1
merlinofchaos commentedDid you try clearing your menu cache before applying this patch? That usually solves this problem.
Comment #2
douggreen commentedNo I didn't. I just cleared the cache, and the problem's no longer there, so I'll go with your suggestion that that was the problem.