summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--prototypejsdemo-model.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/prototypejsdemo-model.lua b/prototypejsdemo-model.lua
index b0d3b05..6ddc2a3 100644
--- a/prototypejsdemo-model.lua
+++ b/prototypejsdemo-model.lua
@@ -250,14 +250,14 @@ iface.validate = function ( def )
def.method.errtxt = "Method specified is invalid"
for k,v in pairs (iface.methods) do
if def.method.value == v then
- def.method.errtxt = ""
+ def.method.errtxt = nil
end
end
-- More validation tests go here ---
--
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