summaryrefslogtreecommitdiffstats
path: root/etc/rc.filter_synchronize
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfSense.org>2010-01-09 15:14:07 -0500
committerScott Ullrich <sullrich@pfSense.org>2010-01-09 15:14:07 -0500
commit72bad805d6353246ebf8a9faba9ca629f2692900 (patch)
treead16380dcece20a0ad52d252f272fad50ba99f53 /etc/rc.filter_synchronize
parent5684694a60bdfe8d0dde575f694e908a7caff275 (diff)
downloadpfsense-72bad805d6353246ebf8a9faba9ca629f2692900.zip
pfsense-72bad805d6353246ebf8a9faba9ca629f2692900.tar.gz
Check for is_array()
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 f821485..f846999 100755
--- a/etc/rc.filter_synchronize
+++ b/etc/rc.filter_synchronize
@@ -185,7 +185,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