summaryrefslogtreecommitdiffstats
path: root/gnats-model.lua
diff options
context:
space:
mode:
Diffstat (limited to 'gnats-model.lua')
-rw-r--r--gnats-model.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/gnats-model.lua b/gnats-model.lua
index c3d75e4..a3afc02 100644
--- a/gnats-model.lua
+++ b/gnats-model.lua
@@ -376,7 +376,7 @@ end
function getconfig()
if (fs.is_file(configfile)) then
- return format.parse_ini_file(fs.read_file(configfile), "") or {}
+ return format.parse_ini_file(fs.read_file(configfile) or "", "") or {}
end
return {}
end
@@ -418,7 +418,7 @@ function get_filedetails(self,path)
type="longtext",
name="filecontent" .. (num or ""),
label="File content",
- value=fs.read_file(path),
+ value=fs.read_file(path) or "",
})
-- Sum all errors into one cfe