In "Webform / E-mails / Edit e-mail" settings admin page (URL: node/[webform-node-id]/webform/emails/1):
if you check no component in the section "Included e-mail values", you get the following error displayed after form submission:

warning: Invalid argument supplied for foreach() in /var/www/sites/all/modules/webform/includes/webform.submissions.inc on line 543.

I solved that by checking components, but not using the %email_values token, so that's not an issue for me anymore but I wanted to inform you.

By the way, thanks for all the great work.

Comments

stacysimpson’s picture

Status: Active » Needs review
StatusFileSize
new1.08 KB

I ran into the same thing yesterday and threw a quick 'isset' around the faulty block. Not sure if there is a more elegant solution.?.?

quicksketch’s picture

Sweet, thanks for the excellent report and patch. I'll make sure this gets included in the next version.

quicksketch’s picture

Status: Needs review » Fixed

Committed to 3.x versions. Thanks again!

Status: Fixed » Closed (fixed)

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