Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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:   -

No Format
#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   This happens only for email events without replacement tags (for all email
events 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.

--
Best Regards,

...

Related Tasks