In template_preprocess_webform_form(), the else part dereferences the content of a variable even when it is undefined.

The variable should be checked and a proper default returned.

This happens when you save a new webform that does not yet have any submissions.

Thank you.
Alexis Wilke

CommentFileSizeAuthor
webform-e_notify-6.x.patch519 bytesAlexisWilke

Comments

quicksketch’s picture

Status: Needs review » Closed (won't fix)

Looks like this has been fixed in 3.x as part of #277581: Send emails with a custom/templated body (and subject, to addresses and from addresses). 2.x isn't being maintained for the most part, I don't think this minor problem will be fixed.

AlexisWilke’s picture

This was a bug report about 2.x-dev though. 8-)

Thank you.
Alexis