* luci/themes: do an explicit check for table data type on result of uci.changes()
This commit is contained in:
parent
48e06817da
commit
788cbb2633
@ -122,7 +122,7 @@ end
|
||||
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;
|
||||
|
||||
@ -122,7 +122,7 @@ end
|
||||
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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user