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:
392bfd3
)
libs/uci: fix bug in property_bool() of luci.model.uci.bind class
author
Jo-Philipp Wich
<jow@openwrt.org>
Sun, 8 Nov 2009 02:32:29 +0000
(
02:32
+0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Sun, 8 Nov 2009 02:32:29 +0000
(
02:32
+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 c189b8fc59f7747fa80fc5fb156a4403a6a143c0..9472dabebb53dfae0dba469fa5398da3a78d5755 100644
(file)
--- a/
libs/uci/luasrc/model/uci/bind.lua
+++ b/
libs/uci/luasrc/model/uci/bind.lua
@@
-166,7
+166,7
@@
function bsection.property_bool(self, k, n)
if val == nil then
return bind:bool(c:get(k, c.sid))
else
- return c:set(k,
self.
bind:bool(val) and "1" or "0", c.sid)
+ return c:set(k, bind:bool(val) and "1" or "0", c.sid)
end
end
end