diff options
-rwxr-xr-x | etc/rc.filter_synchronize | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/rc.filter_synchronize b/etc/rc.filter_synchronize index 34198b4..dede6ba 100755 --- a/etc/rc.filter_synchronize +++ b/etc/rc.filter_synchronize @@ -185,7 +185,7 @@ function carp_sync_xml($url, $password, $sections, $port = 80, $method = 'pfsens $cli->setDebug(1); /* send our XMLRPC message and timeout after 240 seconds */ $resp = $cli->send($msg, "240"); - if(!$resp) { + if(!is_object($resp)) { $error = "A communications error occured while attempting XMLRPC sync with username {$username} {$url}:{$port}."; log_error($error); file_notice("sync_settings", $error, "Settings Sync", ""); |