diff options
author | jim-p <jimp@pfsense.org> | 2010-11-03 10:25:43 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2010-11-03 10:26:12 -0400 |
commit | b039f099e66c9dbd0c33470bc4613e0cfdc9a1a0 (patch) | |
tree | 69a4dd38acb22bc55c1e9047109222d57f1e7d58 /usr/local | |
parent | 9cb94dd46bf45155d55585e0f8c3e432705d8ca2 (diff) | |
download | pfsense-b039f099e66c9dbd0c33470bc4613e0cfdc9a1a0.zip pfsense-b039f099e66c9dbd0c33470bc4613e0cfdc9a1a0.tar.gz |
Don't show empty user IPsec keys.
Diffstat (limited to 'usr/local')
-rw-r--r-- | usr/local/www/vpn_ipsec_keys.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/vpn_ipsec_keys.php b/usr/local/www/vpn_ipsec_keys.php index 5a5f914..17a7549 100644 --- a/usr/local/www/vpn_ipsec_keys.php +++ b/usr/local/www/vpn_ipsec_keys.php @@ -48,7 +48,7 @@ $a_secret = &$config['ipsec']['mobilekey']; $userkeys = array(); foreach ($config['system']['user'] as $id => $user) { - if (isset($user['ipsecpsk'])) { + if (!empty($user['ipsecpsk'])) { $k = array(); $k["ident"] = $user['name']; $k["pre-shared-key"] = $user['ipsecpsk']; |