From 34c71d1ab228248a62ea1c16cf346e64bf50aad7 Mon Sep 17 00:00:00 2001 From: Roly Rudy Gutierrez Pinto Date: Tue, 20 Apr 2021 00:09:02 -0400 Subject: [PATCH] PMCORE-2970 Review the WARNING in the file workflow/engine/lib/Xml/DOMDocumentExtended.php --- workflow/engine/lib/Xml/DOMDocumentExtended.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workflow/engine/lib/Xml/DOMDocumentExtended.php b/workflow/engine/lib/Xml/DOMDocumentExtended.php index cc1e4085e..30c14ea6c 100644 --- a/workflow/engine/lib/Xml/DOMDocumentExtended.php +++ b/workflow/engine/lib/Xml/DOMDocumentExtended.php @@ -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