Bugfix: XML copy had problems with "&"

This commit is contained in:
Michael Vogel
2016-03-14 23:54:01 +01:00
committed by Roland Haeder
parent 2898749cc6
commit 357c48076d
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)