I get the following error message when I visit the blocks page (probably turns up elsewhere as well):

Notice: Undefined variable: blocks in nice_menus_block_info() (line 190 of C:\inetpub\wwwroot\tricorp_corporate_7\htdocs\sites\all\modules\nice_menus\nice_menus.module).

Looking into that function, this happens when you configure nice_menus to define 0 blocks. I've configured it this way because I am only using nice menus for the theme functions inside my theme.

It's a simple fix, just set $blocks = array() at the top of the function. The empty array will be returned and all is well.

Patch attached, please review.

Thanks,
Matt

CommentFileSizeAuthor
nice_menus.hook_block_info.patch830 bytesm4olivei

Comments

vordude’s picture

Fix Committed with 31c650a0e0509

Thanks Loads.

vordude’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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