Closed (fixed)
Project:
Shortcode
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
12 Sep 2011 at 00:53 UTC
Updated:
12 Sep 2011 at 16:08 UTC
Getting the following in the error logs:
Notice: Undefined variable: shortcodes_enabled in _shortcode_process() (line 132 of /var/www/site/sites/all/modules/contrib/shortcode/shortcode.module).
Notice: Undefined index: 'shortcode here' in _shortcode_settings_form() (line 93 of /var/www/site/sites/all/modules/contrib/shortcode/shortcode.module).
2nd message can be fixed by changing line 93 of the module from:
'#default_value' => $filter->settings[$key],
to
'#default_value' => isset($filter->settings[$key]) ? $filter->settings[$key] : $defaults[$key],
Comments
Comment #1
pavlosdanHow about changing the if statement at line:
132 from
to
?
Comment #2
denes.szabo commentedThx for reporting this bug.
I committed a fix for this (and tons of other notices amended). Pls, check it.
Comment #3
pavlosdanNotices gone. No more errors logged by this module for me. Thanks
Comment #4
pavlosdanstatus change
Comment #5
denes.szabo commentedThx,! Fixed.
Comment #5.0
denes.szabo commentedediting to make more generic