summaryrefslogtreecommitdiffhomepage
path: root/libs/cbi/luasrc/view
diff options
context:
space:
mode:
Diffstat (limited to 'libs/cbi/luasrc/view')
-rw-r--r--libs/cbi/luasrc/view/cbi/dynlist.htm2
-rw-r--r--libs/cbi/luasrc/view/cbi/mvalue.htm2
2 files changed, 2 insertions, 2 deletions
diff --git a/libs/cbi/luasrc/view/cbi/dynlist.htm b/libs/cbi/luasrc/view/cbi/dynlist.htm
index 1d28f95d9b..1cfd6f03e5 100644
--- a/libs/cbi/luasrc/view/cbi/dynlist.htm
+++ b/libs/cbi/luasrc/view/cbi/dynlist.htm
@@ -14,7 +14,7 @@ $Id$
-%>
<%+cbi/valueheader%>
<%
- local vals = self:cfgvalue(section)
+ local vals = self:cfgvalue(section) or {}
for i=1, #vals + 1 do
local val = vals[i]
%>
diff --git a/libs/cbi/luasrc/view/cbi/mvalue.htm b/libs/cbi/luasrc/view/cbi/mvalue.htm
index 4b69708ecd..414089fb2e 100644
--- a/libs/cbi/luasrc/view/cbi/mvalue.htm
+++ b/libs/cbi/luasrc/view/cbi/mvalue.htm
@@ -13,7 +13,7 @@ $Id$
-%>
<%
-local v = self:valuelist(section)
+local v = self:valuelist(section) or {}
%>
<%+cbi/valueheader%>
<% if self.widget == "select" then %>