Skip to content

Commit

Permalink
Merge pull request #12 from matthintr/bugs/sync-fails-on-meta
Browse files Browse the repository at this point in the history
Sync: skip entry if it is not a table (e.g. DKPMeta/LootMeta)
  • Loading branch information
Vapok authored Jun 15, 2020
2 parents 8f8a52e + 6741971 commit 73f70e7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Modules/Sync.lua
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,8 @@ function MonDKP_SyncDeleted()
local deleted = {}

for k,v in pairs(MonDKP:GetTable(MonDKP_Archive, true)) do
if MonDKP:GetTable(MonDKP_Archive, true)[k].deleted then
-- skip entry if it is not a table (e.g. DKPMeta/LootMeta)
if type(MonDKP:GetTable(MonDKP_Archive, true)[k]) == "table" and MonDKP:GetTable(MonDKP_Archive, true)[k].deleted then
table.insert(deleted, { player=k, deleted=v.deleted, edited=v.edited })
end
end
Expand Down

0 comments on commit 73f70e7

Please sign in to comment.