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 c189b8f..9472dab 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
                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
                end
        end
 end