Merge pull request #138 from lwintermelon/patch-1

fix a issue on 21.02
This commit is contained in:
Derry 2021-08-09 13:54:42 +08:00 committed by GitHub
commit f594fde7c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -184,12 +184,12 @@ end
fd:close()
local config_users=m.uci:get_all("appfilter.user.users")
if config_users~=nil then
local r=utl.split(config_users, "%s+", nil, true)
local max = table.getn(r)
for i=1,max,1 do
users:value(r[i], r[i]);
end
if config_users~=nil and config_users~=false then
local r=utl.split(config_users, "%s+", nil, true)
local max = table.getn(r)
for i=1,max,1 do
users:value(r[i], r[i]);
end
end
m:section(SimpleSection).template = "admin_network/user_status"
local dir, fd