Closed (fixed)
Project:
Content Complete
Version:
6.x-1.4
Component:
Code
Priority:
Minor
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
28 Jul 2011 at 17:07 UTC
Updated:
23 Oct 2011 at 10:10 UTC
This is pretty trivial, but I tend to not ignore any PHP notices/warning.
In hook_block(), $op == 'view', there are possible conditions where return $block; can be called before $block is defined. This results in a PHP notice.
Attached is a patch to simple define block, $block = array();.
| Comment | File | Size | Author |
|---|---|---|---|
| content_complete-undefined-block-variable.patch | 513 bytes | mstef |
Comments
Comment #1
pvhee commentedFixed, thanks for the patch.