Bugfix: XML copy had problems with "&"

This commit is contained in:
Michael Vogel 2016-03-14 23:54:01 +01:00
parent dc2e7a66b3
commit 4b5e7007a7
2 changed files with 7 additions and 7 deletions

View file

@ -62,7 +62,7 @@ class xml {
function copy(&$source, &$target, $elementname) {
if (count($source->children()) == 0)
$target->addChild($elementname, $source);
$target->addChild($elementname, xmlify($source));
else {
$child = $target->addChild($elementname);
foreach ($source->children() AS $childfield => $childentry)