From 184f13334f470141420a189220dd3b951aac4480 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Mon, 31 Mar 2008 22:24:32 +0000 Subject: * Fixed haserl-lua Makefile * Fixed a bug in CBI that occured when target UCI is empty * Added frontend for port forwarding / firewall pages --- src/ffluci/cbi.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/ffluci/cbi.lua') 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 -- cgit v1.2.3