Skip to content
This repository has been archived by the owner on Jan 6, 2021. It is now read-only.

Commit

Permalink
Merge pull request #8 from anthonygore/Fix-xml-transport-decorator
Browse files Browse the repository at this point in the history
Fixing bug which causes empty element when ampersand is used
  • Loading branch information
christiaan committed Jan 5, 2016
2 parents 2d51773 + f4cf28c commit 5ce0ab3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Transport/XmlDataTransportDecorator.php
Expand Up @@ -67,7 +67,8 @@ private function encodeRecords(array $records)
$value = $value->format('Y-m-d H:i:s');
}
}
$keyValue = $row->addChild('FL', $value);
$keyValue = $row->addChild('FL');
$keyValue[0] = $value;
$keyValue->addAttribute('val', $key);
}
}
Expand Down Expand Up @@ -201,4 +202,4 @@ private function parseResponsePostRecordsMultiple($xml)

return $records;
}
}
}

0 comments on commit 5ce0ab3

Please sign in to comment.