Commit fb5affdf authored by Ad Schellevis's avatar Ad Schellevis Committed by Franco Fichtner

(legacy) mark deletions in xmlrpc source data

(cherry picked from commit ab17de8c)
parent ec58d98f
...@@ -152,6 +152,13 @@ function copy_conf_section(&$cnf_structure_in, &$cnf_structure_out, $reference) ...@@ -152,6 +152,13 @@ function copy_conf_section(&$cnf_structure_in, &$cnf_structure_out, $reference)
} else { } else {
$cnf_structure_out[$cnf_section] = $cnf_structure_in; $cnf_structure_out[$cnf_section] = $cnf_structure_in;
} }
} else {
// if source entry doesn't exist, make sure we copy an empty entry to the remote side
// otherwise there's no way to know data has been removed
if (!isset($cnf_structure_out[$cnf_section])) {
$cnf_structure_out[$cnf_section] = array();
}
$cnf_structure_out = &$cnf_structure_out[$cnf_section];
} }
$cnf_path_depth++; $cnf_path_depth++;
} }
......
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