Correct handling of 'false' booleans

This commit is contained in:
Bart van Strien 2012-08-30 19:24:33 +02:00
parent e886b00dda
commit 8744d73161

View File

@ -63,7 +63,7 @@ function inifile.parse(name, backend)
if tonumber(value) then value = tonumber(value) end
if value == "true" then value = true end
if value == "false" then value = false end
if key and value then
if key and value ~= nil then
t[section][key] = value
end
end