Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

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.

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

--
Best Regards,

http://www.in-portal.com
http://www.alex-time.com

  • No labels