diff options
author | Colin Smith <colin@pfsense.org> | 2005-09-13 17:34:04 +0000 |
---|---|---|
committer | Colin Smith <colin@pfsense.org> | 2005-09-13 17:34:04 +0000 |
commit | dbac8df230833dd633ebc2baa6c665058b8d1e22 (patch) | |
tree | c3d51ac3cec9643fac87c24e587f4512138cca9e | |
parent | ba13a6e616e4b0e5e7e20d05c13009f5e49d8103 (diff) | |
download | pfsense-dbac8df230833dd633ebc2baa6c665058b8d1e22.zip pfsense-dbac8df230833dd633ebc2baa6c665058b8d1e22.tar.gz |
Use $cli->errstr instead of $resp.
-rw-r--r-- | etc/inc/filter.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index 3f97e48..52043f1 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -2361,8 +2361,8 @@ function carp_sync_xml($url, $password, $section, $section_xml, $method = 'pfsen $cli = new XML_RPC_Client('/xmlrpc.php', $url, $port); $cli->setCredentials('admin', $password); $resp = $cli->send($msg); - if($resp == false) { - log_error("errors occured while syncing XML configuration data to {$url} on port {$port} : {$resp}"); + if(!$resp) { + log_error("errors occured while syncing XML configuration data to {$url} on port {$port} : {$cli->errstr}"); } else { log_error("end synchronize XML configuration data to {$url} on port {$port}"); } @@ -2451,4 +2451,4 @@ function return_vpn_subnet($adr) { return " # error - {$adr['network']} "; } -?>
\ No newline at end of file +?> |