diff options
Diffstat (limited to 'usr/local/www/wizard.php')
-rwxr-xr-x | usr/local/www/wizard.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/usr/local/www/wizard.php b/usr/local/www/wizard.php index 5e4c99c..df6f24c 100755 --- a/usr/local/www/wizard.php +++ b/usr/local/www/wizard.php @@ -138,6 +138,8 @@ function update_config_field($field, $updatetext, $unset) { $arraynum = ""; $field_conv = ""; $field_split = split("->", $field['bindstofield']); + // arraynum is used in cases where there is an array of the same field + // name such as dnsserver (2 of them) if($field['arraynum'] <> "") $arraynum = "[" . $field['arraynum'] . "]"; foreach ($field_split as $f) $field_conv .= "['" . $f . "']"; $toeval = "\$value = \$config" . $field_conv . $arraynum . ";"; |