diff options
author | Steven Barth <steven@midlink.org> | 2008-06-08 21:21:33 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-06-08 21:21:33 +0000 |
commit | c7e3e118116ed8065cdff0e4192a489c955fee32 (patch) | |
tree | d44ff0050616447ef4d56378026199348d806f5d /libs/cbi/luasrc | |
parent | 52673c157bb30700ede902fd92daa152d423209e (diff) |
* libs/cbi: Fixed a bug which prevented creation of non-anonymous sections
Diffstat (limited to 'libs/cbi/luasrc')
-rw-r--r-- | libs/cbi/luasrc/cbi.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libs/cbi/luasrc/cbi.lua b/libs/cbi/luasrc/cbi.lua index fbd235595f..2e788be5f9 100644 --- a/libs/cbi/luasrc/cbi.lua +++ b/libs/cbi/luasrc/cbi.lua @@ -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 |