Commit f1c11390 authored by Ad Schellevis's avatar Ad Schellevis

config bug in updateRevision

parent 331f4665
......@@ -277,7 +277,12 @@ class Config extends Singleton
}
}
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)) {
$this->updateRevision($revItem, $childNode);
} 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