summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fetchmail-model.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/fetchmail-model.lua b/fetchmail-model.lua
index 6556209..e2b2a92 100644
--- a/fetchmail-model.lua
+++ b/fetchmail-model.lua
@@ -300,7 +300,7 @@ function get_filedetails()
-- Sum all errors into one cfe
local sumerrors = ""
for k,v in pairs(config) do
- if (config[k]["errtxt"] ~= "") then
+ if (config[k]) and (config[k]["errtxt"]) and (config[k]["errtxt"] ~= "") then
sumerrors = sumerrors .. config[k]["errtxt"] .. "\n"
end
end