diff options
-rw-r--r-- | gnats-model.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gnats-model.lua b/gnats-model.lua index a39090c..5a00ba1 100644 --- a/gnats-model.lua +++ b/gnats-model.lua @@ -378,9 +378,9 @@ end function getconfig() if (fs.is_file(configfile)) then - return getopts.getoptsfromfile(configfile) + return getopts.getoptsfromfile(configfile, "") or {} end - return false + return {} end function get_filedetails(self,path) @@ -425,7 +425,7 @@ function get_filedetails(self,path) -- Sum all errors into one cfe local sumerrors = "" - for k,v in pairs(config or {}) do + for k,v in pairs(config) do if (config[k]) and (config[k]["errtxt"]) and (config[k]["errtxt"] ~= "") then sumerrors = sumerrors .. config[k]["errtxt"] .. "\n" end |