Модуль:GetField: различия между версиями
Pok (обсуждение | вклад) мНет описания правки |
Pok (обсуждение | вклад) мНет описания правки |
||
| Строка 40: | Строка 40: | ||
local function format_value(v) | local function format_value(v) | ||
if v == nil then return "" end | if v == nil then return "" end | ||
if type(v) == "table" and next(v) == nil then | |||
return "" | |||
end | |||
local t = type(v) | local t = type(v) | ||
if t == "string" or t == "number" or t == "boolean" then | if t == "string" or t == "number" or t == "boolean" then | ||