Fix rare crash

This commit is contained in:
Bryan Ashby 2015-12-07 21:47:19 -07:00
parent 93a28f4b7b
commit cdabb3cf38
1 changed files with 8 additions and 1 deletions

View File

@ -78,7 +78,14 @@ WhosOnlineModule.prototype.mciReady = function(mciData, cb) {
userName : oe.user.username, userName : oe.user.username,
realName : oe.user.properties.real_name, realName : oe.user.properties.real_name,
timeOn : _.capitalize(moment.duration(55, 'minutes').humanize()), timeOn : _.capitalize(moment.duration(55, 'minutes').humanize()),
action : oe.currentMenuModule.menuConfig.desc || 'Unknown', action : function getCurrentAction() {
var cmm = oe.currentMenuModule;
if(cmm) {
return cmm.menuConfig.desc || 'Unknown';
}
return 'Unknown';
//oe.currentMenuModule.menuConfig.desc || 'Unknown',
},
location : oe.user.properties.location, location : oe.user.properties.location,
affils : oe.user.properties.affiliation, affils : oe.user.properties.affiliation,
}); });