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

Commit 5ce0ab3

Browse files
committed
Merge pull request #8 from anthonygore/Fix-xml-transport-decorator
Fixing bug which causes empty element when ampersand is used
2 parents 2d51773 + f4cf28c commit 5ce0ab3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Transport/XmlDataTransportDecorator.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ private function encodeRecords(array $records)
6767
$value = $value->format('Y-m-d H:i:s');
6868
}
6969
}
70-
$keyValue = $row->addChild('FL', $value);
70+
$keyValue = $row->addChild('FL');
71+
$keyValue[0] = $value;
7172
$keyValue->addAttribute('val', $key);
7273
}
7374
}
@@ -201,4 +202,4 @@ private function parseResponsePostRecordsMultiple($xml)
201202

202203
return $records;
203204
}
204-
}
205+
}

0 commit comments

Comments
 (0)