summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorignace nyamagana butera <nyamsprod@gmail.com>2015-12-03 13:06:12 +0100
committerignace nyamagana butera <nyamsprod@gmail.com>2015-12-03 13:06:12 +0100
commitb63baca7ab534289be9361017fc147924a55a67a (patch)
tree662eb8f8cff3b99fd3cd363d2be4361144484095 /src
parentc6a6a7242350bab4f12f1ca1f1f11d7ed48fe5ae (diff)
downloadcsv-b63baca7ab534289be9361017fc147924a55a67a.zip
csv-b63baca7ab534289be9361017fc147924a55a67a.tar.gz
csv-b63baca7ab534289be9361017fc147924a55a67a.tar.bz2
bug fix Output::toXML method
Diffstat (limited to 'src')
-rw-r--r--src/Config/Output.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Config/Output.php b/src/Config/Output.php
index cab87da..4117717 100644
--- a/src/Config/Output.php
+++ b/src/Config/Output.php
@@ -263,14 +263,14 @@ trait Output
$doc = new DomDocument('1.0', 'UTF-8');
$root = $doc->createElement($root_name);
foreach ($this->convertToUtf8($this->getQueryIterator()) as $row) {
- $row = $doc->createElement($row_name);
- array_walk($row, function ($value) use (&$row, $doc, $cell_name) {
+ $rowElement = $doc->createElement($row_name);
+ array_walk($row, function ($value) use (&$rowElement, $doc, $cell_name) {
$content = $doc->createTextNode($value);
$cell = $doc->createElement($cell_name);
$cell->appendChild($content);
- $row->appendChild($cell);
+ $rowElement->appendChild($cell);
});
- $root->appendChild($row);
+ $root->appendChild($rowElement);
}
$doc->appendChild($root);