Fix horrible mistake
This commit is contained in:
parent
1df30b8954
commit
da19bd99b3
@ -2,6 +2,7 @@ local function cmd(args)
|
||||
local entries = env.xmlFindTags(env.db,"entries")[1]
|
||||
for i,entry in pairs(entries.children) do
|
||||
local fields = env.xmlFindTags(entry,"fields")[1]
|
||||
if entry.attrs.id == args[2] then
|
||||
for i,v in pairs(fields.children) do
|
||||
if v.attrs.name == args[3] then
|
||||
table.remove(fields.children,i)
|
||||
@ -11,6 +12,7 @@ local function cmd(args)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
return cmd
|
||||
|
Loading…
Reference in New Issue
Block a user