summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorayvis <ayvis.infra@gmail.com>2014-03-21 21:38:40 +0100
committerayvis <ayvis.infra@gmail.com>2014-03-21 21:38:40 +0100
commitde22e9ca9864d802ad1ec1376247b788efb6938a (patch)
tree58babbcd716c6506276ef34f48e076a81a31c872 /usr/local
parent691a0346aaa9e85c767261a1fbfbb7fbfc196929 (diff)
downloadpfsense-de22e9ca9864d802ad1ec1376247b788efb6938a.zip
pfsense-de22e9ca9864d802ad1ec1376247b788efb6938a.tar.gz
syntax error
Diffstat (limited to 'usr/local')
-rw-r--r--usr/local/www/system_advanced_misc.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr/local/www/system_advanced_misc.php b/usr/local/www/system_advanced_misc.php
index c73479d..14db29f 100644
--- a/usr/local/www/system_advanced_misc.php
+++ b/usr/local/www/system_advanced_misc.php
@@ -60,9 +60,11 @@ $pconfig['lb_use_sticky'] = isset($config['system']['lb_use_sticky']);
$pconfig['srctrack'] = $config['system']['srctrack'];
$pconfig['gw_switch_default'] = isset($config['system']['gw_switch_default']);
$pconfig['preferoldsa_enable'] = isset($config['ipsec']['preferoldsa']);
-foreach ($ipsec_loglevel as $lkey => $ldescr) {
+if (isset($ipsec_loglevel)) {
+ foreach ($ipsec_loglevel as $lkey => $ldescr) {
if (!empty($config['ipsec']["ipsec_{$lkey}"]))
$pconfig["ipsec_{$lkey}"] = $config['ipsec']["ipsec_{$lkey}"];
+ }
}
$pconfig['failoverforcereload'] = isset($config['ipsec']['failoverforcereload']);
$pconfig['maxmss_enable'] = isset($config['system']['maxmss_enable']);
OpenPOWER on IntegriCloud