mirror of
https://github.com/bartbes/inifile.git
synced 2024-11-15 23:54:23 +00:00
Correct handling of 'false' booleans
This commit is contained in:
parent
e886b00dda
commit
8744d73161
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user