diff options
Diffstat (limited to 'lib/viewfunctions.lua')
-rw-r--r-- | lib/viewfunctions.lua | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/viewfunctions.lua b/lib/viewfunctions.lua index 801e7e4..819135e 100644 --- a/lib/viewfunctions.lua +++ b/lib/viewfunctions.lua @@ -9,7 +9,12 @@ function displayinfo(myform,tags,viewtype) io.write(" class='error'") end io.write(">" .. val.label .. "</DT>") - io.write("\n\t\t<DD>") + io.write("\n\t\t<DD") + if (val.errtxt) then + val.class = "error" + io.write(" class='error'") + end + io.write(">") if (viewtype == "viewonly") then if (val.value == "") and (val.errtxt == nil) and ((val.descr) and (val.descr == "")) then val.value = " " end io.write(val.value) |