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:
dab004b
)
libs/uci: fix property_bool() in luci.model.uci.bind
author
Jo-Philipp Wich
<jow@openwrt.org>
Fri, 30 Oct 2009 19:43:13 +0000
(19:43 +0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Fri, 30 Oct 2009 19:43:13 +0000
(19:43 +0000)
libs/uci/luasrc/model/uci/bind.lua
patch
|
blob
|
history
diff --git
a/libs/uci/luasrc/model/uci/bind.lua
b/libs/uci/luasrc/model/uci/bind.lua
index 84cfc773ffa094bd47a33a9c6faf96db01f13e32..c189b8fc59f7747fa80fc5fb156a4403a6a143c0 100644
(file)
--- a/
libs/uci/luasrc/model/uci/bind.lua
+++ b/
libs/uci/luasrc/model/uci/bind.lua
@@
-164,7
+164,7
@@
end
function bsection.property_bool(self, k, n)
self[n or k] = function(c, val)
if val == nil then
- return
self.
bind:bool(c:get(k, c.sid))
+ return bind:bool(c:get(k, c.sid))
else
return c:set(k, self.bind:bool(val) and "1" or "0", c.sid)
end