summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--opennhrp-controller.lua2
-rw-r--r--opennhrp-status-html.lsp2
2 files changed, 1 insertions, 3 deletions
diff --git a/opennhrp-controller.lua b/opennhrp-controller.lua
index 366e87a..2bb03c8 100644
--- a/opennhrp-controller.lua
+++ b/opennhrp-controller.lua
@@ -30,8 +30,6 @@ local function displaycmdmanagement(pidofstatus)
-- next CFE can be used to present the result of the previous action
management.actionresult = cfe({ name="actionresult",
label="Previous action result",
- descr="", --Content of this variable is displayed as <PRE> ... </PRE> in BLACK text
- errtxt="", --Content of this variable is displayed as <PRE> ... </PRE> in RED text
})
-- Disable management buttons based on if the process is running or not
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