From a31c08d3021cac457c4f616c095cb79e7a8861da Mon Sep 17 00:00:00 2001 From: midoks Date: Sat, 4 May 2019 20:54:42 +0800 Subject: [PATCH] Update index.py --- plugins/op_waf/index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/op_waf/index.py b/plugins/op_waf/index.py index a914b5d48..0e9dcbdff 100755 --- a/plugins/op_waf/index.py +++ b/plugins/op_waf/index.py @@ -577,7 +577,7 @@ def setSiteObjOpen(): content = public.readFile(path) content = json.loads(content) - if obj in content[siteName]: + if type(content[siteName][obj]) == bool: if content[siteName][obj]: content[siteName][obj] = False else: