From be5498721f38a2eb8debbeef025aac55406fac04 Mon Sep 17 00:00:00 2001 From: Cooldude2606 Date: Tue, 24 Oct 2017 13:46:04 +0100 Subject: [PATCH] error? --- locale/ExpGaming-Core/ExpGaming - Lib.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/locale/ExpGaming-Core/ExpGaming - Lib.lua b/locale/ExpGaming-Core/ExpGaming - Lib.lua index 11d5cd0f..d9ec0ef1 100644 --- a/locale/ExpGaming-Core/ExpGaming - Lib.lua +++ b/locale/ExpGaming-Core/ExpGaming - Lib.lua @@ -72,8 +72,8 @@ function json_log(lua_table,no_log) local result, done, only_indexs = {}, {}, true for key,value in ipairs(lua_table) do done[key] = true - if type(value) == 'table' then value = table.insert(result,json_log(value,true)) - elseif type(value) == 'string' then json = table.insert(result,'"'..value..'"') + if type(value) == 'table' then table.insert(result,json_log(value,true)) + elseif type(value) == 'string' then table.insert(result,'"'..value..'"') elseif type(value) == 'number' then table.insert(result,value) else table.insert(result,key..':null') end end