summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfSense.org>2010-01-09 15:12:57 -0500
committerScott Ullrich <sullrich@pfSense.org>2010-01-09 15:12:57 -0500
commitbd5b06633fc7499b820173f40766d79f9d46c923 (patch)
tree46aa10dd003a6c8e876df029480f49bc2b42c4b9
parent6798004b82efc9cda46371310336041a2c3ff495 (diff)
downloadpfsense-bd5b06633fc7499b820173f40766d79f9d46c923.zip
pfsense-bd5b06633fc7499b820173f40766d79f9d46c923.tar.gz
Check for is_array()
-rw-r--r--etc/inc/filter.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index 64d89b0..c970092 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -3230,7 +3230,7 @@ function carp_sync_xml($url, $password, $sections, $port = 80, $method = 'pfsens
$numberofruns = 3;
}
$parsed_response = XML_RPC_Decode($resp->value());
- if(trim($parsed_response) == "Authentication failed") {
+ if(!is_array($firewall_info) && trim($firewall_info) == "Authentication failed") {
$error = "A authentication failure occurred while trying to access {$url}:{$port} (pfsense.exec_php).";
log_error($error);
$numberofruns = 5;
OpenPOWER on IntegriCloud