summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-03-06 04:41:53 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-03-06 04:41:53 +0000
commit16ccd95cbb7ccf54a32e78290f0c626352327b71 (patch)
tree01497e7ceaeb6a3e883557b54553f55a09ee5472 /etc
parentb21dd17d87ae65b45215df13125e9fbc4fce13ab (diff)
downloadpfsense-16ccd95cbb7ccf54a32e78290f0c626352327b71.zip
pfsense-16ccd95cbb7ccf54a32e78290f0c626352327b71.tar.gz
Check if item exists before using.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/interfaces.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index 2560869..555d02e 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -459,7 +459,8 @@ function interfaces_carp_configure() {
mute_kernel_msgs();
}
/* suck in configuration items */
- if($config['installedpackages']['carpsettings']['config']) {
+ if($config['installedpackages']['carpsettings'])
+ if($config['installedpackages']['carpsettings']['config']) {
foreach($config['installedpackages']['carpsettings']['config'] as $carp) {
$pfsyncenabled = $carp['pfsyncenabled'];
$balanacing = $carp['balancing'];
OpenPOWER on IntegriCloud