From: Steven Barth Date: Sun, 8 Jun 2008 21:21:33 +0000 (+0000) Subject: * libs/cbi: Fixed a bug which prevented creation of non-anonymous sections X-Git-Tag: 0.8.0~847 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c7e3e118116ed8065cdff0e4192a489c955fee32;p=oweals%2Fluci.git * libs/cbi: Fixed a bug which prevented creation of non-anonymous sections --- diff --git a/libs/cbi/luasrc/cbi.lua b/libs/cbi/luasrc/cbi.lua index fbd235595..2e788be5f 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