require("luci.model.uci")
local ucic = 0
local changes = luci.model.uci.changes()
- if changes then
+ if type(changes) == "table" then -- XXX: sometimes string or nil / needs investigation
for n, s in pairs(changes) do
for no, o in pairs(s) do
ucic = ucic + 1;
require("luci.model.uci")
local ucic = 0
local changes = luci.model.uci.changes()
- if changes then
+ if type(changes) == "table" then -- XXX: sometimes string or nil / needs investigation
for n, s in pairs(changes) do
for no, o in pairs(s) do
ucic = ucic + 1;