mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-12 07:34:41 +02:00
Fix rare crash
This commit is contained in:
parent
93a28f4b7b
commit
cdabb3cf38
1 changed files with 8 additions and 1 deletions
|
@ -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,
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue