diff options
author | Bill Marquette <billm@pfsense.org> | 2005-05-06 00:29:06 +0000 |
---|---|---|
committer | Bill Marquette <billm@pfsense.org> | 2005-05-06 00:29:06 +0000 |
commit | 7cc3caa01e058702155329485cbc8d054be488f2 (patch) | |
tree | eed5e6e7ab9698a8ae6f7523bc1e4ae1dbd83067 /packages | |
parent | 801be97bcca0dd83aa3a544edbaeb023f756af8c (diff) | |
download | pfsense-packages-7cc3caa01e058702155329485cbc8d054be488f2.tar.gz pfsense-packages-7cc3caa01e058702155329485cbc8d054be488f2.tar.bz2 pfsense-packages-7cc3caa01e058702155329485cbc8d054be488f2.zip |
Only sync if there were sections checked
Diffstat (limited to 'packages')
-rw-r--r-- | packages/carp_sync_client.php | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/packages/carp_sync_client.php b/packages/carp_sync_client.php index 545772d1..2123c3d8 100644 --- a/packages/carp_sync_client.php +++ b/packages/carp_sync_client.php @@ -74,11 +74,13 @@ if($already_processed != 1) { $sections_xml[] = new XML_RPC_Value(backup_config_section("shaper"), 'string'); $sections[] = new XML_RPC_Value('shaper', 'string'); } - carp_sync_xml($synchronizetoip, $carp['password'], $sections, $sections_xml); - $cli = new XML_RPC_Client('/xmlrpc.php', $synchronizetoip); - $msg = new XML_RPC_Message('pfsense.filter_configure', array(new XML_RPC_Value($carp['password'], 'string'))); - $cli->setCredentials('admin', $carp['password']); - $cli->send($msg); + if(count($sections) > 0) { + carp_sync_xml($synchronizetoip, $carp['password'], $sections, $sections_xml); + $cli = new XML_RPC_Client('/xmlrpc.php', $synchronizetoip); + $msg = new XML_RPC_Message('pfsense.filter_configure', array(new XML_RPC_Value($carp['password'], 'string'))); + $cli->setCredentials('admin', $carp['password']); + $cli->send($msg); + } } } } |