diff options
author | Warren Baker <warren@decoy.co.za> | 2014-03-21 20:02:17 +0200 |
---|---|---|
committer | Warren Baker <warren@decoy.co.za> | 2014-03-21 20:02:17 +0200 |
commit | 7e95984f0791bb9970c7df77865c17ab53fe2b41 (patch) | |
tree | 0ca2cfa4aee2a537b41bceae945eaad97b788e1d /usr/local | |
parent | a6bb4e06551224137312b60dfc7db5c06581d35f (diff) | |
download | pfsense-7e95984f0791bb9970c7df77865c17ab53fe2b41.zip pfsense-7e95984f0791bb9970c7df77865c17ab53fe2b41.tar.gz |
Ensure options are still checked after post
Diffstat (limited to 'usr/local')
-rw-r--r-- | usr/local/www/services_unbound.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/services_unbound.php b/usr/local/www/services_unbound.php index 21a1b2e..16ce801 100644 --- a/usr/local/www/services_unbound.php +++ b/usr/local/www/services_unbound.php @@ -223,7 +223,7 @@ function show_advanced_dns() { <tr> <td width="22%" valign="top" class="vncellreq"><?=gettext("DNSSEC");?></td> <td width="78%" class="vtable"><p> - <input name="dnssec" type="checkbox" id="dnssec" value="yes" <?php if ($pconfig['dnssec'] === true) echo "checked";?>/> + <input name="dnssec" type="checkbox" id="dnssec" value="yes" <?php echo (isset($pconfig['dnssec']) ? "checked" : "");?>/> <strong><?=gettext("Enable DNSSEC Support");?><br /> </strong></p> </td> @@ -231,7 +231,7 @@ function show_advanced_dns() { <tr> <td width="22%" valign="top" class="vncellreq"><?=gettext("DNS Query Forwarding");?></td> <td width="78%" class="vtable"><p> - <input name="forwarding" type="checkbox" id="forwarding" value="yes" <?php if ($pconfig['forwarding'] == "yes") echo "checked";?>> + <input name="forwarding" type="checkbox" id="forwarding" value="yes" <?php echo (isset($pconfig['forwarding']) ? "checked" : "");?>/> <strong><?=gettext("Enable Forwarding Mode");?></strong><br /></p> </td> </tr> |