The conditional in the prettify_admin_settings_validate function is checking against a variable that does not exist

if (!empty($form_values['prettify_auto_tags'][PRETTIFY_MARKUP_PRE])) {

Should be:

if (!empty($form_state['values']['prettify_auto_tags'][PRETTIFY_MARKUP_PRE])) {

CommentFileSizeAuthor
#1 undefined-var-2015847-1.patch589 bytesdesmondmorris

Comments

desmondmorris’s picture

Status: Active » Needs review
StatusFileSize
new589 bytes
smartinm’s picture

Status: Needs review » Fixed

Thank you Desmond,

I've committed the patch into 7.x-1.x and 6.x-1.x branch:

http://drupalcode.org/project/prettify.git/commit/6006ed4
http://drupalcode.org/project/prettify.git/commit/95af3d2

Status: Fixed » Closed (fixed)

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