summaryrefslogtreecommitdiffstats
path: root/tinydns-status-html.lsp
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2008-04-30 20:36:02 +0000
committerTed Trask <ttrask01@yahoo.com>2008-04-30 20:36:02 +0000
commitd9a9c68eecd41c0e8a95a3d379797380760c90e9 (patch)
tree6335f5011f39c6a65fced445e47a9a2e357986ed /tinydns-status-html.lsp
parentbaac30e2eea27c97de2583b530911a9d987b4f9e (diff)
downloadacf-tinydns-d9a9c68eecd41c0e8a95a3d379797380760c90e9.tar.bz2
acf-tinydns-d9a9c68eecd41c0e8a95a3d379797380760c90e9.tar.xz
Modified cfe, removing option, errtxt, and name, and adding label - This may break things.
Rewrote password module, adding model Modified authenticator to make password module work git-svn-id: svn://svn.alpinelinux.org/acf/tinydns/trunk@1052 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'tinydns-status-html.lsp')
-rw-r--r--tinydns-status-html.lsp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tinydns-status-html.lsp b/tinydns-status-html.lsp
index d659aa7..90b7179 100644
--- a/tinydns-status-html.lsp
+++ b/tinydns-status-html.lsp
@@ -28,7 +28,7 @@ io.write("<DL>")
if (myform) and (myform.value) then
local val = myform
io.write("\n\t<DT")
- if (#val.errtxt > 0) then
+ if (val.errtxt) then
io.write(" class='error'")
end
io.write(">" .. val.label .. "</DT>")
@@ -43,7 +43,7 @@ if (myform) and (myform.value) then
end
if (val.descr) and (#val.descr > 0) then io.write("\n\t\t<P CLASS='descr'>" .. string.gsub(val.descr, "\n", "<BR>") .. "</P>") end
- if (#val.errtxt > 0) then io.write("\n\t\t<P CLASS='error'>" .. string.gsub(val.errtxt, "\n", "<BR>") .. "</P>") end
+ if (val.errtxt) then io.write("\n\t\t<P CLASS='error'>" .. string.gsub(val.errtxt, "\n", "<BR>") .. "</P>") end
io.write("\n\t\t</DD>")
end
io.write("</DL>")