libs/cbi: properly handle uvl errors without childs
This commit is contained in:
parent
2c7a761054
commit
0c7effc0c0
1 changed files with 1 additions and 1 deletions
|
@ -166,7 +166,7 @@ local function _uvl_validate_section(node, name)
|
||||||
|
|
||||||
local function tag_section(e)
|
local function tag_section(e)
|
||||||
local s = { }
|
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
|
if c.childs and not c:is(luci.uvl.errors.ERR_DEPENDENCY) then
|
||||||
table.insert( s, c.childs[1]:string() )
|
table.insert( s, c.childs[1]:string() )
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue