projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
luci-base: fix luci.model.uci.get_first()
[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
7e1c8f5
..
0e3950c
100644
(file)
--- a/
modules/luci-base/luasrc/model/uci.lua
+++ b/
modules/luci-base/luasrc/model/uci.lua
@@
-242,7
+242,7
@@
end
function get_first(self, config, stype, option, default)
local rv = default
- self:foreach(conf, stype, function(s)
+ self:foreach(conf
ig
, stype, function(s)
local val = not option and s[".name"] or s[option]
if type(default) == "number" then