summaryrefslogtreecommitdiffhomepage
path: root/libs/uci/luasrc
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-10-30 19:43:13 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-10-30 19:43:13 +0000
commit20f2edcce0092203b1d30f59a9ada5385eb7d1f4 (patch)
treeddd15c3f475a88617b62cb1bd08395ff472f7930 /libs/uci/luasrc
parentdab004b0afd18393f0cb09c82188052d2fe1cfb1 (diff)
libs/uci: fix property_bool() in luci.model.uci.bind
Diffstat (limited to 'libs/uci/luasrc')
-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 84cfc773f..c189b8fc5 100644
--- 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