Merged in bugfix/PMCORE-2970 (pull request #7886)

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

Approved-by: Julio Cesar Laura Avendaño
This commit is contained in:
Roly Rudy Gutierrez Pinto
2021-04-20 15:27:21 +00:00
committed by Julio Cesar Laura Avendaño

View File

@@ -26,7 +26,7 @@ class Xml_DOMDocumentExtended extends DOMDocument
}
}
$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;
// how many of thse child nodes do we have?
if ($iChildCount > 1) { // more than 1 child - make numeric array