summaryrefslogtreecommitdiffstats
path: root/etc/rc.filter_synchronize
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2011-09-28 22:59:45 +0000
committerErmal <eri@pfsense.org>2011-09-28 23:48:18 +0000
commitaa690c34f27d30ad6537b37284eaaf7b7121b2bf (patch)
treea3329f27daed764d52a6704d197b2f0eed998e1d /etc/rc.filter_synchronize
parentb1b42a065cd5c6bf867d6a12371379ff2ddbed85 (diff)
downloadpfsense-aa690c34f27d30ad6537b37284eaaf7b7121b2bf.zip
pfsense-aa690c34f27d30ad6537b37284eaaf7b7121b2bf.tar.gz
Correctly check if it is a valid object or not
Diffstat (limited to 'etc/rc.filter_synchronize')
-rwxr-xr-xetc/rc.filter_synchronize2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/rc.filter_synchronize b/etc/rc.filter_synchronize
index 71803f2..40d5c84 100755
--- a/etc/rc.filter_synchronize
+++ b/etc/rc.filter_synchronize
@@ -408,7 +408,7 @@ if (is_array($config['installedpackages']['carpsettings']) && is_array($config['
$cli->setCredentials($username, $carp['password']);
$resp = $cli->send($msg, "900");
- if(!$resp) {
+ if(!is_object($resp)) {
$error = "A communications error occured while attempting Filter sync with username {$username} {$synchronizetoip}:{$port}.";
log_error($error);
file_notice("sync_settings", $error, "Settings Sync", "");
OpenPOWER on IntegriCloud