Commit 4bc2eef4 authored by Ad Schellevis's avatar Ad Schellevis

sync with master

parent d3a1cfb8
...@@ -277,7 +277,12 @@ class Config extends Singleton ...@@ -277,7 +277,12 @@ class Config extends Singleton
} }
} }
foreach ($revision as $revKey => $revItem) { foreach ($revision as $revKey => $revItem) {
$childNode = $node->addChild($revKey); if (isset($node->{$revKey})) {
// key already in revision object
$childNode = $node->{$revKey};
} else {
$childNode = $node->addChild($revKey);
}
if (is_array($revItem)) { if (is_array($revItem)) {
$this->updateRevision($revItem, $childNode); $this->updateRevision($revItem, $childNode);
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment