summaryrefslogtreecommitdiffstats
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:52 -0200
commit9a2d491c037162137255756eb05bd62316103d42 (patch)
tree0dce6855dd782a62a1b5f146b7950667d0e2b53d
parente390d6645c00d3e2480701fc4435ca897831b901 (diff)
downloadpfsense-RELENG_2_0.zip
pfsense-RELENG_2_0.tar.gz
Fix vpn_pppoe_get_id and stop duplicating pppoeid for multiple servers, it fixes #2286RELENG_2_0
-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 73ed4eb..a44342c 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