Patch attached here
This error can be recreated by the following steps:
1. Create Fresh Webform without any components
2. Attempt to add email address.
Errors
* warning: array_filter() [function.array-filter]: The first argument should be an array in /home/troynt/public_html/voteapi/drupal/sites/all/modules/webform/includes/webform.emails.inc on line 404.
* warning: array_keys() [function.array-keys]: The first argument should be an array in /home/troynt/public_html/voteapi/drupal/sites/all/modules/webform/includes/webform.emails.inc on line 404.
* warning: array_diff() [function.array-diff]: Argument #2 is not an array in /home/troynt/public_html/voteapi/drupal/sites/all/modules/webform/includes/webform.emails.inc on line 405.
* warning: implode() [function.implode]: Invalid arguments passed in /home/troynt/public_html/voteapi/drupal/sites/all/modules/webform/includes/webform.emails.inc on line 465.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | webform_blank_new_email.patch | 1.25 KB | quicksketch |
| webform.emails.inc_.no-component-array-fix.patch | 863 bytes | troynt |
Comments
Comment #1
quicksketchThanks, I've seen this error when working on the 7.x version. In the future, take a look at http://drupal.org/coding-standards, since this patch has a couple problems even though it's only a few lines. Thanks!
Comment #2
quicksketchThis patch should correct the problems. Committed to D6/7 branches.