Skip to content
Snippets Groups Projects
Commit 20447c87 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

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

As reported in #synchronet by Android8675
parent 98a651ea
Branches
Tags
1 merge request!463MRC mods by Codefenix (2024-10-20)
...@@ -332,6 +332,7 @@ for(var i in cnf.chan) { ...@@ -332,6 +332,7 @@ for(var i in cnf.chan) {
delete obj.code; delete obj.code;
obj.actions = cnf.actset[obj.actset].name; obj.actions = cnf.actset[obj.actset].name;
delete obj.actset; delete obj.actset;
if(cnf.guru[obj.guru])
obj.guru = cnf.guru[obj.guru].code; obj.guru = cnf.guru[obj.guru].code;
ini.iniSetObject(key, obj); ini.iniSetObject(key, obj);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment