summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Controller-afb/ctl-lua.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Controller-afb/ctl-lua.c b/Controller-afb/ctl-lua.c
index ce631dc..8d5a87e 100644
--- a/Controller-afb/ctl-lua.c
+++ b/Controller-afb/ctl-lua.c
@@ -199,8 +199,8 @@ STATIC json_object *LuaTableToJson (lua_State* luaState, int index) {
if (!tableJ) {
tableJ= json_object_new_array();
tableType=LUA_TNUMBER;
- } else if(tableType == LUA_TNUMBER) {
- AFB_ERROR("MIX Lua Table with key string/numeric not supported");
+ } else if(tableType != LUA_TNUMBER) {
+ AFB_ERROR("MIX Lua Table with key numeric/string not supported");
return NULL;
}