prevent crash if data.enter is not string

This commit is contained in:
barisusakli
2015-08-18 17:05:28 -04:00
parent c45e182bab
commit 5ababdbdf0
2 changed files with 5 additions and 1 deletions

View File

@@ -92,7 +92,7 @@ app.cacheBuster = null;
switch(url_parts[0]) {
case 'user':
room = 'user/' + ajaxify.data ? ajaxify.data.theirid : 0;
room = 'user/' + (ajaxify.data ? ajaxify.data.theirid : 0);
break;
case 'topic':
room = 'topic_' + url_parts[1];