projects
/
oweals
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2c7a761
)
libs/cbi: properly handle uvl errors without childs
author
Jo-Philipp Wich
<jow@openwrt.org>
Sun, 29 Mar 2009 22:13:26 +0000
(22:13 +0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Sun, 29 Mar 2009 22:13:26 +0000
(22:13 +0000)
libs/cbi/luasrc/cbi.lua
patch
|
blob
|
history
diff --git
a/libs/cbi/luasrc/cbi.lua
b/libs/cbi/luasrc/cbi.lua
index 4bed9b0e68ebe81dee74786378c347c02e5dd058..e7ad55047fb15155d65bdf8e4ec5ff8f52ab5da3 100644
(file)
--- a/
libs/cbi/luasrc/cbi.lua
+++ b/
libs/cbi/luasrc/cbi.lua
@@
-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