projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
uci:get_list: always return a table, no matter what.
[project/luci.git]
/
modules
/
luci-base
/
luasrc
/
model
/
uci.lua
diff --git
a/modules/luci-base/luasrc/model/uci.lua
b/modules/luci-base/luasrc/model/uci.lua
index
e9bac6e
..
577c6cd
100644
(file)
--- a/
modules/luci-base/luasrc/model/uci.lua
+++ b/
modules/luci-base/luasrc/model/uci.lua
@@
-111,7
+111,7
@@
function Cursor.get_list(self, config, section, option)
local val = self:get(config, section, option)
return ( type(val) == "table" and val or { val } )
end
- return
nil
+ return
{}
end
function Cursor.get_first(self, conf, stype, opt, def)