summaryrefslogtreecommitdiffstats
path: root/lbu-config-html.lsp
diff options
context:
space:
mode:
Diffstat (limited to 'lbu-config-html.lsp')
-rw-r--r--lbu-config-html.lsp5
1 files changed, 2 insertions, 3 deletions
diff --git a/lbu-config-html.lsp b/lbu-config-html.lsp
index 0f2abe2..13e94c3 100644
--- a/lbu-config-html.lsp
+++ b/lbu-config-html.lsp
@@ -16,7 +16,7 @@
<dl>
<dt <? if (view.errors) and (view.errors.LBU_MEDIA) then io.write("class='error'") end ?>>Default media for commit</dt>
<dd><select name="LBU_MEDIA" size="1">
- <? if (view.config.LBU_MEDIA == nil) then io.write("<option value='' selected='selected'>No default</option>") end ?>
+ <? if (view.config.LBU_MEDIA == "") then io.write("<option value='' selected='selected'>No default</option>") end ?>
<? for i=1, table.maxn(view.config.LBU_MEDIA_LIST) do ?>
<option value="<?= view.config.LBU_MEDIA_LIST[i]["value"] ?>"
<? if (string.lower(view.config.LBU_MEDIA_LIST[i]["value"]) == string.lower(view.config.LBU_MEDIA or "")) then io.write("selected='selected'") end?>>
@@ -58,6 +58,7 @@
<dd><input type="checkbox" name="ENCRYPTION" <? if (view.config.ENCRYPTION) then io.write("checked=yes") end ?>></dd>
<dt>Cipher to use at encryption</dt>
<dd><select name="DEFAULT_CIPHER" size="1">
+ <? if (view.config.DEFAULT_CIPHER == "") then io.write("<option value='' selected='selected'>No default</option>") end ?>
<? for i=1, table.maxn(view.config.DEFAULT_CIPHER_LIST) do ?>
<option value="<?= view.config.DEFAULT_CIPHER_LIST[i] ?>" <? if (string.lower(view.config.DEFAULT_CIPHER_LIST[i]) == string.lower(view.config.DEFAULT_CIPHER)) then io.write("selected='selected'") end?>><?= view.config.DEFAULT_CIPHER_LIST[i] ?></option>
<? end ?>
@@ -81,6 +82,4 @@ io.write(debugs.variables(view))
--]]
?>
-
-
<? -- vim: set filetype=lua : ?>