mirror of
https://github.com/openwrt/luci.git
synced 2026-08-29 08:31:46 +04:00
* luci/themes: do an explicit check for table data type on result of uci.changes()
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user