joomla/joomla-platform — pull request #1330 by bembelimen (2012-06-30 13:00:49+00:00)
Title: Joomla! throws error with valid xml string

Test:

$xml = JFactory::getXML('');

expected result:

a (J)SimpleXML Object

actual result:

Joomla! throws a "JLIB_UTIL_ERROR_XML_LOAD" Error

Solution:

Don't check for "empty()", use === false instead.