summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2013-12-09 09:22:03 -0200
committerRenato Botelho <garga@FreeBSD.org>2013-12-09 09:22:13 -0200
commitd8b011b8e6bfea3d0cc841dccd5bc4e764d4f96b (patch)
tree9fc8a189ec3bd85502d8dbe638d8cadc139a8532 /usr
parent9b74931109e31d3a30b273f608af4b484eeab4d6 (diff)
downloadpfsense-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-xusr/local/www/vpn_pppoe_edit.php4
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;
OpenPOWER on IntegriCloud