diff options
author | Renato Botelho <garga@FreeBSD.org> | 2013-12-09 09:22:03 -0200 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2013-12-09 09:22:13 -0200 |
commit | d8b011b8e6bfea3d0cc841dccd5bc4e764d4f96b (patch) | |
tree | 9fc8a189ec3bd85502d8dbe638d8cadc139a8532 /usr | |
parent | 9b74931109e31d3a30b273f608af4b484eeab4d6 (diff) | |
download | pfsense-d8b011b8e6bfea3d0cc841dccd5bc4e764d4f96b.zip pfsense-d8b011b8e6bfea3d0cc841dccd5bc4e764d4f96b.tar.gz |
Fix vpn_pppoe_get_id and stop duplicating pppoeid for multiple servers, it fixes #2286
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/vpn_pppoe_edit.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/vpn_pppoe_edit.php b/usr/local/www/vpn_pppoe_edit.php index ad401e2..5690818 100755 --- a/usr/local/www/vpn_pppoe_edit.php +++ b/usr/local/www/vpn_pppoe_edit.php @@ -43,9 +43,9 @@ function vpn_pppoe_get_id() { global $config; $vpnid = 1; - if (!is_array($config['pppoes']['pppoe'])) { + if (is_array($config['pppoes']['pppoe'])) { foreach ($config['pppoes']['pppoe'] as $pppoe) { - if ($vpnid == $pppoe['id']) + if ($vpnid == $pppoe['pppoeid']) $vpnid++; else return $vpnid; |