diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2009-11-08 02:32:29 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2009-11-08 02:32:29 +0000 |
commit | 936d82ea5abf6914b69eed57b561911e0830fc3c (patch) | |
tree | a573d3cb9460efe239a582f49ef8dd76c3027340 | |
parent | 392bfd38f86f7f5ea23878dbdf96cfe6bd8a2655 (diff) |
libs/uci: fix bug in property_bool() of luci.model.uci.bind class
-rw-r--r-- | libs/uci/luasrc/model/uci/bind.lua | 2 |
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 c189b8fc5..9472dabeb 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 |