Fixes #4333 Unset previous defined values before using the new ones

This commit is contained in:
Ermal LUÇI 2015-01-31 10:45:31 +01:00
parent 955746b00f
commit 430379acf9
2 changed files with 8 additions and 0 deletions

View File

@ -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"];

View File

@ -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"];