summaryrefslogtreecommitdiffhomepage
path: root/libs
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-11-08 02:32:29 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-11-08 02:32:29 +0000
commit936d82ea5abf6914b69eed57b561911e0830fc3c (patch)
treea573d3cb9460efe239a582f49ef8dd76c3027340 /libs
parent392bfd38f86f7f5ea23878dbdf96cfe6bd8a2655 (diff)
libs/uci: fix bug in property_bool() of luci.model.uci.bind class
Diffstat (limited to 'libs')
-rw-r--r--libs/uci/luasrc/model/uci/bind.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/uci/luasrc/model/uci/bind.lua b/libs/uci/luasrc/model/uci/bind.lua
index c189b8fc59..9472dabebb 100644
--- 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