Skip to content
Snippets Groups Projects
Commit 2daa896b authored by Brett Bieber's avatar Brett Bieber
Browse files

use local copy of the json lib instead of include path

parent e20f743b
Branches
No related tags found
No related merge requests found
......@@ -179,7 +179,8 @@ class xml2json {
}
} // End of if ($recursionDepth == 0) {
if (get_class($simpleXmlElementObject) == SIMPLE_XML_ELEMENT_PHP_CLASS) {
if (is_object($simpleXmlElementObject)
&& get_class($simpleXmlElementObject) == SIMPLE_XML_ELEMENT_PHP_CLASS) {
// Get a copy of the simpleXmlElementObject
$copyOfsimpleXmlElementObject = $simpleXmlElementObject;
// Get the object variables in the SimpleXmlElement object for us to iterate.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment