* libs/cbi: Fixed a bug which prevented creation of non-anonymous sections
This commit is contained in:
parent
52673c157b
commit
c7e3e11811
1 changed files with 5 additions and 1 deletions
|
@ -173,7 +173,11 @@ end
|
|||
|
||||
-- UCI set
|
||||
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
|
||||
|
||||
-- UCI del
|
||||
|
|
Loading…
Reference in a new issue