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();.

Comments

pvhee’s picture

Status: Active » Fixed

Fixed, thanks for the patch.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.