summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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