From 25b8d758e22ca80c7154189673e53685b51deb46 Mon Sep 17 00:00:00 2001 From: Cooldude2606 Date: Tue, 24 Oct 2017 13:40:33 +0100 Subject: [PATCH] -_- --- locale/ExpGaming-Core/ExpGaming - Lib.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/locale/ExpGaming-Core/ExpGaming - Lib.lua b/locale/ExpGaming-Core/ExpGaming - Lib.lua index 8667c495..5afe97de 100644 --- a/locale/ExpGaming-Core/ExpGaming - Lib.lua +++ b/locale/ExpGaming-Core/ExpGaming - Lib.lua @@ -72,18 +72,18 @@ 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)) end - if type(value) == 'string' then json = table.insert(result,'"'..value..'"') + if type(value) == 'table' then value = table.insert(result,json_log(value,true)) + else if type(value) == 'string' then json = table.insert(result,'"'..value..'"') elseif type(value) == 'number' then table.insert(result,value) else table.insert(result,key..':null') end end for key,value in pairs(lua_table) do if not done[key] then only_indexs = false - if type(value) == 'table' then table.insert(result,'"'..key..'":'..json_log(value,true)) end - if type(value) == 'string' then table.insert(result,'"'..key..'":"'..value..'"') + if type(value) == 'table' then table.insert(result,'"'..key..'":'..json_log(value,true)) + elseif type(value) == 'string' then table.insert(result,'"'..key..'":"'..value..'"') elseif type(value) == 'number' then table.insert(result,'"'..key..'":'..value) - else table.insert(result,key..':null') end + else table.insert(result,'"'..key..'":null') end end end if only_indexs then