Updated fix for HHVM.
This commit is contained in:
parent
9441e063aa
commit
df806977c6
@ -398,13 +398,14 @@ class XmlExporter extends AbstractExporter
|
|||||||
private function exportTableOptions(\SimpleXMLElement $parentXml, array $options)
|
private function exportTableOptions(\SimpleXMLElement $parentXml, array $options)
|
||||||
{
|
{
|
||||||
foreach ($options as $name => $option) {
|
foreach ($options as $name => $option) {
|
||||||
$optionXml = is_array($option)
|
$isArray = is_array($option);
|
||||||
|
$optionXml = $isArray
|
||||||
? $parentXml->addChild('option')
|
? $parentXml->addChild('option')
|
||||||
: $parentXml->addChild('option', (string) $option);
|
: $parentXml->addChild('option', (string) $option);
|
||||||
|
|
||||||
$optionXml->addAttribute('name', (string) $name);
|
$optionXml->addAttribute('name', (string) $name);
|
||||||
|
|
||||||
if (is_array($option)) {
|
if ($isArray) {
|
||||||
$this->exportTableOptions($optionXml, $option);
|
$this->exportTableOptions($optionXml, $option);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user