diff options
author | jim-p <jimp@pfsense.org> | 2014-02-10 13:32:52 -0500 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2014-02-10 13:32:52 -0500 |
commit | 51623673dab68bd0d0dbed79351749e39fde6804 (patch) | |
tree | 3ecab158ad0166c69389d562ed69a6eda6b0cd40 /usr/local | |
parent | 56e75b0bcf16ea58f94f5a3242c2c583a1810849 (diff) | |
download | pfsense-51623673dab68bd0d0dbed79351749e39fde6804.zip pfsense-51623673dab68bd0d0dbed79351749e39fde6804.tar.gz |
Fixup pkg_nochecksig option
Diffstat (limited to 'usr/local')
-rw-r--r-- | usr/local/www/system_advanced_misc.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/local/www/system_advanced_misc.php b/usr/local/www/system_advanced_misc.php index 0d00453..b3ed759 100644 --- a/usr/local/www/system_advanced_misc.php +++ b/usr/local/www/system_advanced_misc.php @@ -74,7 +74,7 @@ $pconfig['use_mfs_tmpvar'] = isset($config['system']['use_mfs_tmpvar']); $pconfig['use_mfs_tmp_size'] = $config['system']['use_mfs_tmp_size']; $pconfig['use_mfs_var_size'] = $config['system']['use_mfs_var_size']; $pconfig['noinstalllanspd'] = $config['system']['noinstalllanspd']; -$pconfig['pkg_nochecksig'] = $config['system']['pkg_nochecksig']; +$pconfig['pkg_nochecksig'] = isset($config['system']['pkg_nochecksig']); $pconfig['powerd_ac_mode'] = "hadp"; if (!empty($config['system']['powerd_ac_mode'])) @@ -191,7 +191,7 @@ if ($_POST) { if($_POST['pkg_nochecksig'] == "yes") $config['system']['pkg_nochecksig'] = true; - else + elseif (isset($config['system']['pkg_nochecksig'])) unset($config['system']['pkg_nochecksig']); if($_POST['maxmss_enable'] == "yes") { @@ -710,7 +710,7 @@ function tmpvar_checked(obj) { <tr> <td width="22%" valign="top" class="vncell"><?=gettext("Packages signature"); ?></td> <td width="78%" class="vtable"> - <input name="pkg_nochecksig" type="checkbox" id="pkg_nochecksig" value="yes" <?php if ($pconfig['pkg_nochecksig']) echo "checked=\"checked\""; ?> onclick="tmpvar_checked(this)" /> + <input name="pkg_nochecksig" type="checkbox" id="pkg_nochecksig" value="yes" <?php if ($pconfig['pkg_nochecksig']) echo "checked=\"checked\""; ?> /> <strong><?=gettext("Do NOT check packages signature"); ?></strong><br/> <?=gettext("Enable this option will make pfSense install any packages without check its signature."); ?> </td> |