mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Correctly check if it is a valid object or not
This commit is contained in:
parent
6c1ebf8137
commit
fe032a7e50
@ -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", "");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user