aboutsummaryrefslogtreecommitdiffstats
path: root/packages/carp_sync_client.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-03-16 18:30:00 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-03-16 18:30:00 +0000
commit5dd7d7482b4e9ea322caf4bd7bd04cc4f5b285ac (patch)
tree2c6729ff9bdb495a42a27edc42e36ee391d0962c /packages/carp_sync_client.php
parentd6cd153bbba83b1e3e4ee742c37f5b84041dceb9 (diff)
downloadpfsense-packages-5dd7d7482b4e9ea322caf4bd7bd04cc4f5b285ac.tar.gz
pfsense-packages-5dd7d7482b4e9ea322caf4bd7bd04cc4f5b285ac.tar.bz2
pfsense-packages-5dd7d7482b4e9ea322caf4bd7bd04cc4f5b285ac.zip
Check to make sure carp settings is an array before going forward.
Diffstat (limited to 'packages/carp_sync_client.php')
-rw-r--r--packages/carp_sync_client.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/carp_sync_client.php b/packages/carp_sync_client.php
index d7e9146a..8e494abe 100644
--- a/packages/carp_sync_client.php
+++ b/packages/carp_sync_client.php
@@ -28,7 +28,8 @@
*/
if($already_processed != 1)
- if($config['installedpackages']['carpsettings']['config'] != "") {
+ if($config['installedpackages']['carpsettings']['config'] <> "" and
+ is_array($config['installedpackages']['carpsettings']['config'])) {
$already_processed = 1;
foreach($config['installedpackages']['carpsettings']['config'] as $carp) {
if($carp['synchronizetoip'] <> "" ) {