projects
/
oweals
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
52673c1
)
* libs/cbi: Fixed a bug which prevented creation of non-anonymous sections
author
Steven Barth
<steven@midlink.org>
Sun, 8 Jun 2008 21:21:33 +0000
(21:21 +0000)
committer
Steven Barth
<steven@midlink.org>
Sun, 8 Jun 2008 21:21:33 +0000
(21:21 +0000)
libs/cbi/luasrc/cbi.lua
patch
|
blob
|
history
diff --git
a/libs/cbi/luasrc/cbi.lua
b/libs/cbi/luasrc/cbi.lua
index fbd235595fbafc43f7ed9ae4ca96fa26aae19bdf..2e788be5f95e25a2357d99165bff69d769e0b119 100644
(file)
--- 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