From 9a2d491c037162137255756eb05bd62316103d42 Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Mon, 9 Dec 2013 09:22:03 -0200 Subject: Fix vpn_pppoe_get_id and stop duplicating pppoeid for multiple servers, it fixes #2286 --- usr/local/www/vpn_pppoe_edit.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr/local/www/vpn_pppoe_edit.php') 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; -- cgit v1.1