* libs/cbi: Fixed a bug which prevented creation of non-anonymous sections

This commit is contained in:
Steven Barth 2008-06-08 21:21:33 +00:00
parent 52673c157b
commit c7e3e11811

View file

@ -173,7 +173,11 @@ end
-- UCI set -- UCI set
function Map.set(self, section, option, value) function Map.set(self, section, option, value)
return uci.set(self.config, section, option or value, option and value) if option then
return uci.set(self.config, section, option, value)
else
return uci.set(self.config, section, value)
end
end end
-- UCI del -- UCI del