diff options
author | Ermal Luçi <eri@pfsense.org> | 2009-07-14 18:56:47 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2009-07-14 18:57:08 +0000 |
commit | 4504a76990aebf536c14501cf71907ae546d9c2a (patch) | |
tree | 57cd4267d81555c0e49fc5ff3fdcc5ae45a5872e /usr/local/www/vpn_l2tp_users_edit.php | |
parent | 4666b7875109373ab373fd25aff4606c87f32742 (diff) | |
download | pfsense-4504a76990aebf536c14501cf71907ae546d9c2a.zip pfsense-4504a76990aebf536c14501cf71907ae546d9c2a.tar.gz |
Remove all nested functions decalaration seems php does not like them! Make all the nested functions real functions.
Diffstat (limited to 'usr/local/www/vpn_l2tp_users_edit.php')
-rw-r--r-- | usr/local/www/vpn_l2tp_users_edit.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/usr/local/www/vpn_l2tp_users_edit.php b/usr/local/www/vpn_l2tp_users_edit.php index 4b5a8f5..c54a449 100644 --- a/usr/local/www/vpn_l2tp_users_edit.php +++ b/usr/local/www/vpn_l2tp_users_edit.php @@ -37,17 +37,17 @@ $pgtitle = array(gettext("VPN"),gettext("L2TP"),gettext("User"),gettext("Edit")); +function l2tpusercmp($a, $b) { + return strcasecmp($a['name'], $b['name']); +} + function l2tp_users_sort() { - global $g, $config; + global $config; if (!is_array($config['l2tp']['user'])) return; - function usercmp($a, $b) { - return strcasecmp($a['name'], $b['name']); - } - - usort($config['l2tp']['user'], "usercmp"); + usort($config['l2tp']['user'], "l2tpusercmp"); } require("guiconfig.inc"); |