From d8b011b8e6bfea3d0cc841dccd5bc4e764d4f96b 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') 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; -- cgit v1.1