mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Revert "Be correct on teh variable scope"
This reverts commit 106646b420.
This commit is contained in:
parent
106646b420
commit
b8c8820bd1
@ -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") {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user