From 241c48ef279d5a4c8971e1fa675143f5862c8ec0 Mon Sep 17 00:00:00 2001 From: Phil Davis Date: Thu, 23 Jul 2015 06:39:27 +0545 Subject: Add isset check for strictcrlpolicy To be consistent with the checks in the rest of this code. --- usr/local/www/vpn_ipsec_settings.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/local/www/vpn_ipsec_settings.php b/usr/local/www/vpn_ipsec_settings.php index a7f84a4..fc76fef 100644 --- a/usr/local/www/vpn_ipsec_settings.php +++ b/usr/local/www/vpn_ipsec_settings.php @@ -160,7 +160,7 @@ if ($_POST) { if ($_POST['strictcrlpolicy'] == "yes") { $config['ipsec']['strictcrlpolicy'] = true; - } else { + } elseif (isset($config['ipsec']['strictcrlpolicy'])) { unset($config['ipsec']['strictcrlpolicy']); } -- cgit v1.1