diff options
author | Matthew Grooms <mgrooms@pfsense.org> | 2008-07-19 23:16:21 +0000 |
---|---|---|
committer | Matthew Grooms <mgrooms@pfsense.org> | 2008-07-19 23:16:21 +0000 |
commit | 4e1f4ba638a3ecbeec44677d68f316d0f5c2fa48 (patch) | |
tree | 6cd2eb2d3e7a85044f1addf6fdd08fc8514b40e2 | |
parent | 9bca25755268495f7459efa61eff4cf7dafb90e3 (diff) | |
download | pfsense-4e1f4ba638a3ecbeec44677d68f316d0f5c2fa48.zip pfsense-4e1f4ba638a3ecbeec44677d68f316d0f5c2fa48.tar.gz |
Fix a but in the IPsec Mobile Client screen that caused the 'Apply' banner
to be displayed unconditionally when IPsec support is globally disabled.
-rwxr-xr-x | usr/local/www/vpn_ipsec_mobile.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/usr/local/www/vpn_ipsec_mobile.php b/usr/local/www/vpn_ipsec_mobile.php index 34fbc70..7158610 100755 --- a/usr/local/www/vpn_ipsec_mobile.php +++ b/usr/local/www/vpn_ipsec_mobile.php @@ -34,8 +34,6 @@ if (!is_array($config['ipsec']['phase1'])) $a_phase1 = &$config['ipsec']['phase1']; -$a_client = &$config['ipsec']['client']; - if (!is_array($config['ipsec']['client'])) $config['ipsec']['client'] = array(); @@ -280,7 +278,7 @@ function login_banner_change() { <?php if ($savemsg) print_info_box($savemsg); - if (file_exists($d_ipsecconfdirty_path)) + if (isset($config['ipsec']['enable']) && file_exists($d_ipsecconfdirty_path)) print_info_box_np("The IPsec tunnel configuration has been changed.<br>You must apply the changes in order for them to take effect."); foreach ($a_phase1 as $ph1ent) if (isset($ph1ent['mobile'])) |