summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMika Havela <mika.havela@gmail.com>2008-04-16 14:45:27 +0000
committerMika Havela <mika.havela@gmail.com>2008-04-16 14:45:27 +0000
commit87500311f12cb7c2768e8ce4e138847f9283e4b6 (patch)
treeac7b7faa92f885d3da60ad50f9593c35f5ebf5a7 /lib
parent498e37c5578dd5884c68279a3f8a31ff4c7f4434 (diff)
downloadacf-core-87500311f12cb7c2768e8ce4e138847f9283e4b6.tar.bz2
acf-core-87500311f12cb7c2768e8ce4e138847f9283e4b6.tar.xz
Added some tabs to the roles file.
Some graphical bugfixes on the lib/viewfunction.lua git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1024 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'lib')
-rw-r--r--lib/viewfunctions.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/viewfunctions.lua b/lib/viewfunctions.lua
index 42b4d96..d69f2cc 100644
--- a/lib/viewfunctions.lua
+++ b/lib/viewfunctions.lua
@@ -11,6 +11,7 @@ function displayinfo(myform,tags,viewtype)
io.write(">" .. val.label .. "</DT>")
io.write("\n\t\t<DD>")
if (viewtype == "viewonly") then
+ if (val.value == "") and (val.errtxt == "") and ((val.descr) and (val.descr == "")) then val.value = "&nbsp;" end
io.write(val.value)
elseif (val.type == "radio") and (type(val.option) == "table") and (#val.option > 0) then
io.write("<span style='display:inline' class='" .. ( val.class or "") .. "'>")