Closed (fixed)
Project:
Nice Menus
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Jan 2011 at 19:08 UTC
Updated:
16 May 2011 at 05:02 UTC
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
| Comment | File | Size | Author |
|---|---|---|---|
| nice_menus.hook_block_info.patch | 830 bytes | m4olivei |
Comments
Comment #1
vordude commentedFix Committed with 31c650a0e0509
Thanks Loads.
Comment #2
vordude commented