diff options
author | Steven Barth <steven@midlink.org> | 2008-04-22 18:55:12 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-04-22 18:55:12 +0000 |
commit | 32274f49f0aeb0d424a59d8cba6b20689c43ac92 (patch) | |
tree | 8724d3ffe0875f1a7e92e482ea4c94f5ab07cd81 /core | |
parent | b08db70e906bedbdd0541b68d5282de9983474ab (diff) |
* ffluci.cbi: Fixed a problem where an error message occured when the first UCI section in an empty configuration file gets created
Diffstat (limited to 'core')
-rw-r--r-- | core/src/ffluci/cbi.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/src/ffluci/cbi.lua b/core/src/ffluci/cbi.lua index 5b38d1b50..f653e457d 100644 --- a/core/src/ffluci/cbi.lua +++ b/core/src/ffluci/cbi.lua @@ -147,6 +147,7 @@ function Map.add(self, sectiontype) if name then self.ucidata[name] = {} self.ucidata[name][".type"] = sectiontype + self.ucidata[".order"] = self.ucidata[".order"] or {} table.insert(self.ucidata[".order"], name) end return name @@ -164,6 +165,7 @@ function Map.set(self, section, option, value) self.ucidata[section] = {} end self.ucidata[section][".type"] = val + self.ucidata[".order"] = self.ucidata[".order"] or {} table.insert(self.ucidata[".order"], section) end end |