summaryrefslogtreecommitdiffstats
path: root/usr/local/www/vpn_l2tp_users_edit.php
diff options
context:
space:
mode:
authorErik Fonnesbeck <efonnes@gmail.com>2010-03-10 19:26:08 -0700
committerErik Fonnesbeck <efonnes@gmail.com>2010-03-10 19:31:56 -0700
commit0e3aa71cd00836a3621ca68cb7e060b0d07e1327 (patch)
tree7651ebd517f34634dbfff6a25c2886792e9f2204 /usr/local/www/vpn_l2tp_users_edit.php
parenteb20f3c51e41cb65885589bbb229860ed069f78f (diff)
downloadpfsense-0e3aa71cd00836a3621ca68cb7e060b0d07e1327.zip
pfsense-0e3aa71cd00836a3621ca68cb7e060b0d07e1327.tar.gz
Fix sorting issues that were introduced in an old commit, resulting in the incorrect item sometimes being shown when clicking edit buttons.
Diffstat (limited to 'usr/local/www/vpn_l2tp_users_edit.php')
-rw-r--r--usr/local/www/vpn_l2tp_users_edit.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/usr/local/www/vpn_l2tp_users_edit.php b/usr/local/www/vpn_l2tp_users_edit.php
index ad1db19..f88d821 100644
--- a/usr/local/www/vpn_l2tp_users_edit.php
+++ b/usr/local/www/vpn_l2tp_users_edit.php
@@ -56,7 +56,6 @@ require_once("vpn.inc");
if (!is_array($config['l2tp']['user'])) {
$config['l2tp']['user'] = array();
}
-l2tp_users_sort();
$a_secret = &$config['l2tp']['user'];
$id = $_GET['id'];
@@ -124,11 +123,11 @@ if ($_POST) {
if ($_POST['passwordfld'])
$secretent['password'] = $_POST['passwordfld'];
- l2tp_users_sort();
if (isset($id) && $a_secret[$id])
$a_secret[$id] = $secretent;
else
$a_secret[] = $secretent;
+ l2tp_users_sort();
write_config();
OpenPOWER on IntegriCloud