Skip to content

Commit b54e1a3

Browse files
committed
Remove duplicated common part
1 parent 7e674e2 commit b54e1a3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

system/Format/XMLFormatter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,15 @@ protected function arrayToXML(array $data, &$output)
6363
{
6464
foreach ($data as $key => $value)
6565
{
66+
$key = $this->normalizeXMLTag($key);
67+
6668
if (is_array($value))
6769
{
68-
$key = $this->normalizeXMLTag($key);
6970
$subnode = $output->addChild("$key");
7071
$this->arrayToXML($value, $subnode);
7172
}
7273
else
7374
{
74-
$key = $this->normalizeXMLTag($key);
7575
$output->addChild("$key", htmlspecialchars("$value"));
7676
}
7777
}

0 commit comments

Comments
 (0)