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: