diff --git a/setup/modelfactory.class.inc.php b/setup/modelfactory.class.inc.php index d6aa0f28d..abbf46b4c 100644 --- a/setup/modelfactory.class.inc.php +++ b/setup/modelfactory.class.inc.php @@ -1234,9 +1234,9 @@ class MFElement extends DOMElement * where value can be the either a text or an array of items... recursively * Returns a PHP array */ - public function GetNodeAsArrayOfItems() + public function GetNodeAsArrayOfItems($sElementName = 'items') { - $oItems = $this->GetOptionalElement('items'); + $oItems = $this->GetOptionalElement($sElementName); if ($oItems) { $res = array();