Check both greater and less than for the configuration version in XMLRPC sync. Fixes #4902

This commit is contained in:
jim-p 2015-07-29 15:50:17 -04:00
parent 6538d22fcb
commit 4379f31869

View File

@ -130,9 +130,10 @@ function carp_check_version($url, $username, $password, $port = 80, $method = 'p
}
} else {
if (!isset($parsed_response['config_version']) ||
$parsed_response['config_version'] < $config['version']) {
update_filter_reload_status("The other member is on older configuration version of {$g['product_name']}. Sync will not be done to prevent problems!");
log_error("The other member is on older configuration version of {$g['product_name']}. Sync will not be done to prevent problems!");
($parsed_response['config_version'] < $config['version']) ||
($parsed_response['config_version'] > $config['version'])) {
update_filter_reload_status("The other member is on a different configuration version of {$g['product_name']}. Sync will not be done to prevent problems!");
log_error("The other member is on a different configuration version of {$g['product_name']}. Sync will not be done to prevent problems!");
return false;
} else {
return true;