warning: preg_match() expects parameter 2
mattyoung - November 10, 2009 - 14:15
| Project: | Invite |
| Version: | 6.x-2.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
Description
warning: preg_match() expects parameter 2 to be string, array given in /var/www/html/drupal/includes/bootstrap.inc on line 777.sending invite with two email addresses separated by ','

#1
This is a problem where the message is set from the text box on the form, but the $message variable is overwritten by the drupa_mail function in the message to multiple emails loop.
Quickfix - save off the message into another variable before the loop then reset the $message variable on the start of the loop...
(see patch)