Skip to content

Commit

Permalink
Fix vpn_pppoe_get_id and stop duplicating pppoeid for multiple server…
Browse files Browse the repository at this point in the history
…s, it fixes pfsense#2286
  • Loading branch information
rbgarga committed Dec 9, 2013
1 parent e390d66 commit 9a2d491
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions usr/local/www/vpn_pppoe_edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9a2d491

Please sign in to comment.