diff options
Diffstat (limited to 'usr/local/www/wizards/setup_wizard.xml')
-rw-r--r-- | usr/local/www/wizards/setup_wizard.xml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/local/www/wizards/setup_wizard.xml b/usr/local/www/wizards/setup_wizard.xml index 2bce4b3..5cb794b 100644 --- a/usr/local/www/wizards/setup_wizard.xml +++ b/usr/local/www/wizards/setup_wizard.xml @@ -420,18 +420,18 @@ } $type = $_POST['selectedtype']; - $wanif = ""; $ppid = ""; + $wanif = ""; if (is_array($config['ppps']['ppp']) && count($config['ppps']['ppp'])) { foreach ($config['ppps']['ppp'] as $pppid => $ppp) { if ($realif == $ppp['if']) { $ifaces = explode(",", $ppp['ports']); - $wanif = $ifaces[0]; $ppid = $pppid; + $wanif = $ifaces[0]; } } } if (!empty($wanif)) { $config['interfaces']['wan']['if'] = $wanif; - unset($config['ppps']['ppp'][$ppid]); + unset($config['ppps']['ppp'][$pppid]); } if ($type == "pppoe" || $type == "pptp") { |