libs/uci: fix bug in property_bool() of luci.model.uci.bind class

This commit is contained in:
Jo-Philipp Wich 2009-11-08 02:32:29 +00:00
parent 392bfd38f8
commit 936d82ea5a

View 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