diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-03-16 18:30:00 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-03-16 18:30:00 +0000 |
commit | 5dd7d7482b4e9ea322caf4bd7bd04cc4f5b285ac (patch) | |
tree | 2c6729ff9bdb495a42a27edc42e36ee391d0962c | |
parent | d6cd153bbba83b1e3e4ee742c37f5b84041dceb9 (diff) | |
download | pfsense-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.
-rw-r--r-- | packages/carp_sync_client.php | 3 |
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'] <> "" ) { |