projects
/
project
/
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
fbd2355
..
2e788be
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