summaryrefslogtreecommitdiffstats
path: root/interfaces-model.lua
diff options
context:
space:
mode:
Diffstat (limited to 'interfaces-model.lua')
-rw-r--r--interfaces-model.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/interfaces-model.lua b/interfaces-model.lua
index efc5ed9..57949a3 100644
--- a/interfaces-model.lua
+++ b/interfaces-model.lua
@@ -271,7 +271,7 @@ iface.validate = function ( def )
--
local rc = true
for k,v in pairs(def) do
- if #def[k].errtxt > 0 then result = false end
+ if def[k].errtxt then result = false end
end
return result, def