1
0
mirror of synced 2025-01-25 01:31:40 +03:00

Updated fix for HHVM.

This commit is contained in:
Guilherme Blanco 2014-04-18 03:05:41 +00:00
parent 9441e063aa
commit df806977c6

View File

@ -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);
} }
} }