Commit 20447c87 authored by Rob Swindell's avatar Rob Swindell 💬
Browse files

Protect against line 335: TypeError: cnf.guru[obj.guru] is undefined

As reported in #synchronet by Android8675
parent 98a651ea
......@@ -332,7 +332,8 @@ for(var i in cnf.chan) {
delete obj.code;
obj.actions = cnf.actset[obj.actset].name;
delete obj.actset;
obj.guru = cnf.guru[obj.guru].code;
if(cnf.guru[obj.guru])
obj.guru = cnf.guru[obj.guru].code;
ini.iniSetObject(key, obj);
}
for(var i in cnf.chatact) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment