Correctly check if it is a valid object or not

This commit is contained in:
Ermal 2011-09-28 22:59:45 +00:00
parent 6c1ebf8137
commit fe032a7e50

View File

@ -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", "");