Replacing without crashing

This commit is contained in:
Kasper Rynning-Tønnesen
2018-03-19 13:17:39 +01:00
parent 2a9f5dc434
commit 701ff55588

View File

@@ -334,7 +334,8 @@ module.exports = function() {
socket.on('password', function(inp)
{
ListSettings.password(inp, coll.replace(/ /g,''), guid, offline, socket);
if(coll != undefined) coll.replace(/ /g,'');
ListSettings.password(inp, coll, guid, offline, socket);
});
socket.on('skip', function(list)