summaryrefslogtreecommitdiffhomepage
path: root/src/ffluci/cbi.lua
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-03-31 22:24:32 +0000
committerSteven Barth <steven@midlink.org>2008-03-31 22:24:32 +0000
commit184f13334f470141420a189220dd3b951aac4480 (patch)
treea110745e118b4970362599e8b45272506f67f9ba /src/ffluci/cbi.lua
parent746fdf6b472e72cb01b0c3510cc3eb04be1237b7 (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.lua3
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