/
Errors during email event sending [5.1.0]

Errors during email event sending [5.1.0]

Imported From: http://groups.google.com/group/in-portal-bugs/browse_thread/thread/c0dc6b929818ca3e#

There are 2 errors happening every time a email event is sent:

#512: XML error: Invalid document end at line 1 in [/core/units/helpers/xml_helper.php] on line 62 
#2: Invalid argument supplied for foreach() in [/core/units/email_events/email_events_event_handler.php] on line 951 

  This happens only for email events without replacement tags (for all email events in default installation). 

This happens because *MInputHelper::parseMInputXML *method attempt to parse empty string (when no replacement tags xml is available) and then do foreach cycle on it.

Solution

I propose to check for an empty string as input and return empty array in this case.

Related Tasks

INP-657 - Getting issue details... STATUS