diff options
Diffstat (limited to 'opennhrp-status-html.lsp')
-rw-r--r-- | opennhrp-status-html.lsp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/opennhrp-status-html.lsp b/opennhrp-status-html.lsp index 5c16c8f..2c1a531 100644 --- a/opennhrp-status-html.lsp +++ b/opennhrp-status-html.lsp @@ -24,7 +24,7 @@ displayinfo(myform,tags,"viewonly") local myform = form.status.show io.write("\t<DT") -if (#myform.errtxt > 0) then io.write(" class='error'") end +if (myform.errtxt) then io.write(" class='error'") end io.write(">" .. myform.label .. "</DT>\n") io.write("\t\t<DD>\n") for k,v in pairs(myform.option or {}) do |