diff options
author | Scott Ullrich <sullrich@pfSense.org> | 2010-01-09 15:14:07 -0500 |
---|---|---|
committer | Scott Ullrich <sullrich@pfSense.org> | 2010-01-09 15:14:07 -0500 |
commit | 72bad805d6353246ebf8a9faba9ca629f2692900 (patch) | |
tree | ad16380dcece20a0ad52d252f272fad50ba99f53 /etc/rc.filter_synchronize | |
parent | 5684694a60bdfe8d0dde575f694e908a7caff275 (diff) | |
download | pfsense-72bad805d6353246ebf8a9faba9ca629f2692900.zip pfsense-72bad805d6353246ebf8a9faba9ca629f2692900.tar.gz |
Check for is_array()
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 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; |