try a third time to fix crash

This commit is contained in:
MisterE123
2021-03-10 01:40:04 -05:00
parent cbedeefac7
commit 6ab11d4f2d

View File

@ -234,7 +234,12 @@ modpol.add_org = function(org_name, members, parent_id, properties)
end end
end end
local msg = "New org: " .. org_name .. " ["..org_id.."], parent = ".. parent_org_id or ""..", members = ".. local parent_id_str = "none"
if parent_org_id then
parent_id_str = tostring(parent_org_id)
end
local msg = "New org: " .. org_name .. " ["..org_id.."], parent = ".. parent_id_str ..", members = "..
" (" .. table.concat (members, ", ") .. ")" " (" .. table.concat (members, ", ") .. ")"
modpol.record (org_id, msg, 'org_init') modpol.record (org_id, msg, 'org_init')