mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Fix eval bug.
This commit is contained in:
parent
7dc767fe12
commit
35fecd552d
@ -163,7 +163,7 @@ if($pkg['step'][$stepid]['stepbeforeformdisplay'] <> "") {
|
||||
$toeval = "\$value = \$config" . $field_conv . $arraynum . ";";
|
||||
eval($toeval);
|
||||
if ($field['type'] == "checkbox") {
|
||||
$toeval = "if(isset(" . $field_conv . $arraynum . ") \$value = \$config" . $field_conv . $arraynum . ";";
|
||||
$toeval = "if(isset(\$config" . $field_conv . $arraynum . ")) \$value = \" CHECKED\";";
|
||||
eval($toeval);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user