Closed (fixed)
Project:
Better Formats
Version:
6.x-1.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 Jan 2010 at 09:39 UTC
Updated:
19 Feb 2010 at 14:00 UTC
I've just installed Better Formats module and got this error in admin/settings/filters/defaults:
Notice: Undefined index: administer blocks in sites\all\modules\better_formats\better_formats_defaults.admin.inc on line 195
I guess there should be something like:
if ($reset || empty($roles[$perm])) {
instead of
if ($reset || !$roles[$perm]) {
Sorry for not providing a correct patch file, but the change is very small.
Comments
Comment #1
wwalc commentedSorry... wrong status ;)
Comment #2
dragonwize commentedThanks. Committed with just a change from empty() to !isset() as empty() will fall through with an empty array which is valid.