diff options
author | Steven Barth <steven@midlink.org> | 2008-03-31 22:24:32 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-03-31 22:24:32 +0000 |
commit | 184f13334f470141420a189220dd3b951aac4480 (patch) | |
tree | a110745e118b4970362599e8b45272506f67f9ba /src/ffluci/cbi.lua | |
parent | 746fdf6b472e72cb01b0c3510cc3eb04be1237b7 (diff) |
* Fixed haserl-lua Makefile
* Fixed a bug in CBI that occured when target UCI is empty
* Added frontend for port forwarding / firewall pages
Diffstat (limited to 'src/ffluci/cbi.lua')
-rw-r--r-- | src/ffluci/cbi.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ffluci/cbi.lua b/src/ffluci/cbi.lua index d894055168..5bc40499c8 100644 --- a/src/ffluci/cbi.lua +++ b/src/ffluci/cbi.lua @@ -111,6 +111,9 @@ function Map.__init__(self, config, ...) if not self.ucidata then error("Unable to read UCI data: " .. self.config) else + if not self.ucidata[self.config] then + self.ucidata[self.config] = {} + end self.ucidata = self.ucidata[self.config] end end |