summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-02-09 18:00:11 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-02-09 18:00:11 +0000
commit34865da021cb69591cc26908134b270294a36a68 (patch)
treeb8edf2d4521d62863a9831bec2126e86d538b91f /usr
parent64c1ebbb0c1762af186f48d75b7bea7be10e6db2 (diff)
downloadpfsense-34865da021cb69591cc26908134b270294a36a68.zip
pfsense-34865da021cb69591cc26908134b270294a36a68.tar.gz
Overlooked one small aspect. Lets REALLY restore the checkbox correctly.
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/pkg_edit.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/usr/local/www/pkg_edit.php b/usr/local/www/pkg_edit.php
index f262cf8..b2b1c6a 100755
--- a/usr/local/www/pkg_edit.php
+++ b/usr/local/www/pkg_edit.php
@@ -268,9 +268,7 @@ $config = $config_tmp;
echo "<br>" . fixup_string($pkga['description']) . "\n";
} else if($pkga['type'] == "checkbox") {
$checkboxchecked = "";
- $toeval="\$fieldname = \$pkga['fieldname'];";
- eval($toeval);
- if($fieldname <> "") $checkboxchecked = " CHECKED";
+ if($value == "on") $checkboxchecked = " CHECKED";
echo "<input type='checkbox' name='" . $pkga['fieldname'] . "'" . $checkboxchecked . ">\n";
echo "<br>" . fixup_string($pkga['description']) . "\n";
} else if($pkga['type'] == "textarea") {
OpenPOWER on IntegriCloud