summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2014-03-07 22:16:36 +0000
committerTed Trask <ttrask01@yahoo.com>2014-03-07 22:16:36 +0000
commit890ae219949ca4a05e73f8f5b6c146ce10959f00 (patch)
treeb2eee5c94ac20976913bbd4eeae735a7a973a6d7
parent8259d0e26eb1e84266d8fd8f516927270aa92ac0 (diff)
downloadacf-core-890ae219949ca4a05e73f8f5b6c146ce10959f00.tar.bz2
acf-core-890ae219949ca4a05e73f8f5b6c146ce10959f00.tar.xz
Fix more issues in htmlviewfunctions where page_info nil exception
-rw-r--r--lib/htmlviewfunctions.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/htmlviewfunctions.lua b/lib/htmlviewfunctions.lua
index 05fd97f..8fc8a3a 100644
--- a/lib/htmlviewfunctions.lua
+++ b/lib/htmlviewfunctions.lua
@@ -95,6 +95,7 @@ end
function mymodule.displayformitem(myitem, name, viewtype, header_level, group)
if not myitem then return end
if name then myitem.name = name end
+ header_level = header_level or 1
if group and group ~= "" then myitem.name = group.."."..myitem.name end
if myitem.type ~= "hidden" and myitem.type ~= "group" and 0 <= header_level then
io.write("<div class='item")
@@ -255,6 +256,7 @@ end
function mymodule.displayformend(myform, header_level)
if not myform then return end
+ header_level = header_level or 1
local option = myform.submit or myform.option
if 0 <= header_level then
io.write("<div class='item'><p class='left'>")