libs/uci: fix property_bool() in luci.model.uci.bind
This commit is contained in:
parent
dab004b0af
commit
20f2edcce0
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue