* Fixed haserl-lua Makefile
[oweals/luci.git] / src / ffluci / cbi.lua
index d89405516835bc326b33eab8b201436ad7176316..5bc40499c827aeecee7942fb00b6c5d6d68e3b33 100644 (file)
@@ -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