make sure settings are dicts

This commit is contained in:
j 2018-11-15 10:28:30 +00:00
commit 687738ff46
7 changed files with 53 additions and 31 deletions

View file

@ -785,7 +785,7 @@ def setUI(request, data):
if isinstance(p, list):
p = p[getPositionById(p, key)]
else:
if key not in p:
if key not in p or not isinstance(p[key], dict):
p[key] = {}
p = p[key]
if value == None and keys[0] in p: