diff options
author | Nick Daniels <xnick.d@gmail.com> | 2014-04-05 19:49:12 +0100 |
---|---|---|
committer | Nick Daniels <xnick.d@gmail.com> | 2014-04-05 19:49:12 +0100 |
commit | 5a9dd268c6c4edb0c59d071f4fb5684a4f8c83ee (patch) | |
tree | 0735e83d2826ce8fab44bb81b5db5535c6e9918b | |
parent | 1458017ab9abff68f23c22a32a703dd38bf19fdf (diff) | |
download | pfsense-5a9dd268c6c4edb0c59d071f4fb5684a4f8c83ee.zip pfsense-5a9dd268c6c4edb0c59d071f4fb5684a4f8c83ee.tar.gz |
Added check line 175: Needed to fix error in GUI
Added check to see if $config['ipsec']["ipsec_{$lkey}"] is set before executing unnecessary unset, was causing issues when trying to enable/disable ("Do NOT check packages signature")
-rw-r--r-- | usr/local/www/system_advanced_misc.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr/local/www/system_advanced_misc.php b/usr/local/www/system_advanced_misc.php index 421c3af..e5254e9 100644 --- a/usr/local/www/system_advanced_misc.php +++ b/usr/local/www/system_advanced_misc.php @@ -172,7 +172,8 @@ if ($_POST) { foreach ($ipsec_loglevels as $lkey => $ldescr) { if (empty($_POST["ipsec_{$lkey}"])) - unset($config['ipsec']["ipsec_{$lkey}"]); + if (isset($config['ipsec']["ipsec_{$lkey}"])) + unset($config['ipsec']["ipsec_{$lkey}"]); else $config['ipsec']["ipsec_{$lkey}"] = $_POST["ipsec_{$lkey}"]; } |