mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Fixes #4333 Unset previous defined values before using the new ones
This commit is contained in:
parent
955746b00f
commit
430379acf9
@ -551,6 +551,10 @@ function step3_stepsubmitphpaction() {
|
||||
}
|
||||
}
|
||||
|
||||
/* This is necessary since the wizard expects pecnefined fields. */
|
||||
unset($config['ezshaper']['step3']);
|
||||
$config['ezshaper']['step3'] = array();
|
||||
|
||||
for ($i = 0; $i < $steps; $i++) {
|
||||
$config['ezshaper']['step3']["local{$i}download"] = $_POST["local{$i}download"];
|
||||
$config['ezshaper']['step3']["local{$i}downloadspeed"] = $_POST["local{$i}downloadspeed"];
|
||||
|
||||
@ -599,6 +599,10 @@ function step3_stepsubmitphpaction() {
|
||||
}
|
||||
}
|
||||
|
||||
/* This is necessary since the wizard expects pecnefined fields. */
|
||||
unset($config['ezshaper']['step3']);
|
||||
$config['ezshaper']['step3'] = array();
|
||||
|
||||
for ($i = 0; $i < $localint; $i++) {
|
||||
$config['ezshaper']['step3']["local{$i}download"] = $_POST["local{$i}download"];
|
||||
$config['ezshaper']['step3']["local{$i}downloadspeed"] = $_POST["local{$i}downloadspeed"];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user