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 = {