PMCORE-2970 Review the WARNING in the file workflow/engine/lib/Xml/DOMDocumentExtended.php

This commit is contained in:
Roly Rudy Gutierrez Pinto
2021-04-20 00:09:02 -04:00
parent a0d60b9068
commit 34c71d1ab2

View File

@@ -26,7 +26,7 @@ class Xml_DOMDocumentExtended extends DOMDocument
} }
} }
$mValue = $this->toArray($oChildNode); $mValue = $this->toArray($oChildNode);
$sKey = ($oChildNode->nodeName{0} == '#') ? 0 : $oChildNode->nodeName; $sKey = ($oChildNode->nodeName[0] == '#') ? 0 : $oChildNode->nodeName;
$mValue = is_array($mValue) ? $mValue[$oChildNode->nodeName] : $mValue; $mValue = is_array($mValue) ? $mValue[$oChildNode->nodeName] : $mValue;
// how many of thse child nodes do we have? // how many of thse child nodes do we have?
if ($iChildCount > 1) { // more than 1 child - make numeric array if ($iChildCount > 1) { // more than 1 child - make numeric array