From d17c7b79f1349e3b500b951443032dfa153d32ee Mon Sep 17 00:00:00 2001 From: jim-p Date: Tue, 18 Jun 2013 10:04:19 -0400 Subject: Change test after IPsec apply to check for any value >= 0. If a user has hostnames vpn_ipsec_configure() now returns the number of hostnames, so the previous test failed and the "apply changes" button would never go away. --- usr/local/www/vpn_ipsec.php | 2 +- usr/local/www/vpn_ipsec_mobile.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/usr/local/www/vpn_ipsec.php b/usr/local/www/vpn_ipsec.php index 4f154b7..9031e34 100755 --- a/usr/local/www/vpn_ipsec.php +++ b/usr/local/www/vpn_ipsec.php @@ -63,7 +63,7 @@ if ($_POST) { /* reload the filter in the background */ filter_configure(); $savemsg = get_std_save_message($retval); - if ($retval == 0) { + if ($retval >= 0) { if (is_subsystem_dirty('ipsec')) clear_subsystem_dirty('ipsec'); } diff --git a/usr/local/www/vpn_ipsec_mobile.php b/usr/local/www/vpn_ipsec_mobile.php index 4205af3..30927c2 100755 --- a/usr/local/www/vpn_ipsec_mobile.php +++ b/usr/local/www/vpn_ipsec_mobile.php @@ -112,7 +112,7 @@ if ($_POST['apply']) { $retval = 0; $retval = vpn_ipsec_configure(); $savemsg = get_std_save_message($retval); - if ($retval == 0) + if ($retval >= 0) if (is_subsystem_dirty('ipsec')) clear_subsystem_dirty('ipsec'); } -- cgit v1.1