Commit dd77a08b authored by Rob Swindell's avatar Rob Swindell 💬
Browse files

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

parent 20447c87
......@@ -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];
......
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