libs/uci: fix bug in property_bool() of luci.model.uci.bind class
authorJo-Philipp Wich <jow@openwrt.org>
Sun, 8 Nov 2009 02:32:29 +0000 (02:32 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sun, 8 Nov 2009 02:32:29 +0000 (02:32 +0000)
libs/uci/luasrc/model/uci/bind.lua

index c189b8fc59f7747fa80fc5fb156a4403a6a143c0..9472dabebb53dfae0dba469fa5398da3a78d5755 100644 (file)
@@ -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