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

Another paranoia check, in case the new user command shell is invalid

parent 20447c87
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
......@@ -76,7 +76,8 @@ for(var i in cnf) {
ini.iniSetObject("module", mod);
var newuser = {};
cnf.newuser_command_shell = cnf.command_shell[cnf.newuser_command_shell].code;
if(cnf.command_shell[cnf.newuser_command_shell])
cnf.newuser_command_shell = cnf.command_shell[cnf.newuser_command_shell].code;
for(var i in cnf) {
if(i.substring(0,8) == "newuser_") {
newuser[i.substring(8)] = cnf[i];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment