diff options
author | Ermal <eri@pfsense.org> | 2011-09-28 22:59:45 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2011-09-28 23:47:26 +0000 |
commit | fe032a7e5076f1d35b2b8512b3fb7205746fd677 (patch) | |
tree | f782a3dab9e41db058972e52261ecd2edb4f38c1 /etc/rc.filter_synchronize | |
parent | 6c1ebf813768d2f1952d729c7b43ccc22ffc96cc (diff) | |
download | pfsense-fe032a7e5076f1d35b2b8512b3fb7205746fd677.zip pfsense-fe032a7e5076f1d35b2b8512b3fb7205746fd677.tar.gz |
Correctly check if it is a valid object or not
Diffstat (limited to 'etc/rc.filter_synchronize')
-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 a76d15b..b98b683 100755 --- a/etc/rc.filter_synchronize +++ b/etc/rc.filter_synchronize @@ -406,7 +406,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", ""); |