From: Jo-Philipp Wich Date: Sun, 8 Nov 2009 02:32:29 +0000 (+0000) Subject: libs/uci: fix bug in property_bool() of luci.model.uci.bind class X-Git-Tag: 0.10.0~982 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=936d82ea5abf6914b69eed57b561911e0830fc3c;p=oweals%2Fluci.git libs/uci: fix bug in property_bool() of luci.model.uci.bind class --- 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