summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--quagga-controller.lua2
-rw-r--r--quagga-status-html.lsp2
2 files changed, 1 insertions, 3 deletions
diff --git a/quagga-controller.lua b/quagga-controller.lua
index a9024f0..1d0915f 100644
--- a/quagga-controller.lua
+++ b/quagga-controller.lua
@@ -31,8 +31,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/quagga-status-html.lsp b/quagga-status-html.lsp
index c70ea95..6f882d9 100644
--- a/quagga-status-html.lsp
+++ b/quagga-status-html.lsp
@@ -26,7 +26,7 @@ for k,v in pairs(tags) do
local myform = form.status[v]
if (myform) then
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")
io.write("\t\t<PRE>"..myform.value.."</PRE>\n")