share: fix nil error on empty defconfig entries

This commit is contained in:
shagu
2018-10-18 23:34:55 +02:00
parent f6c939b1a9
commit 1e7a52524c
+1 -1
View File
@@ -8,7 +8,7 @@ pfUI:RegisterModule("share", function ()
for k, v in pairs(tbl) do
if not ( ignored[k] and spacing == "" ) and ( not comp or not comp[k] or comp[k] ~= tbl[k] ) then
if type(v) == "table" then
local result = serialize(tbl[k], comp[k], k, ignored, spacing .. " ")
local result = serialize(tbl[k], comp and comp[k], k, ignored, spacing .. " ")
if result then
match = true
str = str .. result