904118851 пре 9 месеци
родитељ
комит
ae073d1cce
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      common/dbproxy/db_filter_config.lua

+ 1 - 1
common/dbproxy/db_filter_config.lua

@@ -36,7 +36,7 @@ function M.getConfig()
         local sql = string.format("select config from `db_filter_config` WHERE config_id = 1 ")
         local res = mysqldbx.query(sql)
         local obj = {}
-        if res[1].config~=nil then
+        if #res>0 and res[1].config~=nil then
             obj = cjson.decode(res[1].config)
         else
             obj = {