diff options
author | Ted Trask <ttrask01@yahoo.com> | 2014-03-07 22:16:36 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2014-03-07 22:16:36 +0000 |
commit | 890ae219949ca4a05e73f8f5b6c146ce10959f00 (patch) | |
tree | b2eee5c94ac20976913bbd4eeae735a7a973a6d7 | |
parent | 8259d0e26eb1e84266d8fd8f516927270aa92ac0 (diff) | |
download | acf-core-890ae219949ca4a05e73f8f5b6c146ce10959f00.tar.bz2 acf-core-890ae219949ca4a05e73f8f5b6c146ce10959f00.tar.xz |
Fix more issues in htmlviewfunctions where page_info nil exception
-rw-r--r-- | lib/htmlviewfunctions.lua | 2 |
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'>") |