summaryrefslogtreecommitdiffstats
path: root/tinydns-status-html.lsp
diff options
context:
space:
mode:
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>")