From 71f29f4424060c68f22b383d6d80f2fd3d21f466 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ermal=20LU=C3=87I?= Date: Thu, 11 Jun 2015 23:57:56 +0200 Subject: Ticket #4655 Do not behave against the logic of checkbox and description. --- usr/local/www/vpn_ipsec_settings.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr/local/www/vpn_ipsec_settings.php') diff --git a/usr/local/www/vpn_ipsec_settings.php b/usr/local/www/vpn_ipsec_settings.php index 024fe2c..5b172bc 100644 --- a/usr/local/www/vpn_ipsec_settings.php +++ b/usr/local/www/vpn_ipsec_settings.php @@ -171,9 +171,9 @@ if ($_POST) { } if ($_POST['noshuntlaninterfaces'] == "yes") { - $config['ipsec']['noshuntlaninterfaces'] = true; - } elseif (isset($config['ipsec']['noshuntlaninterfaces'])) { unset($config['ipsec']['noshuntlaninterfaces']); + } else { + $config['ipsec']['noshuntlaninterfaces'] = true; } if ($_POST['acceptunencryptedmainmode'] == "yes") { -- cgit v1.1