libs/cbi: properly handle uvl errors without childs

This commit is contained in:
Jo-Philipp Wich 2009-03-29 22:13:26 +00:00
parent 2c7a761054
commit 0c7effc0c0

View file

@ -166,7 +166,7 @@ local function _uvl_validate_section(node, name)
local function tag_section(e)
local s = { }
for _, c in ipairs(e.childs) do
for _, c in ipairs(e.childs or { e }) do
if c.childs and not c:is(luci.uvl.errors.ERR_DEPENDENCY) then
table.insert( s, c.childs[1]:string() )
else