check user settings

v1.18.x
barisusakli 9 years ago
parent 5454862c1c
commit 555c5b82da

@ -43,7 +43,7 @@ module.exports = function(Posts) {
userTitle: group.userTitle userTitle: group.userTitle
}; };
if (group.name === results.userSettings[i].groupTitle && group.userTitleEnabled) { if (results.userSettings[i] && group.name === results.userSettings[i].groupTitle && group.userTitleEnabled) {
userData.selectedGroup = userData.groups[index]; userData.selectedGroup = userData.groups[index];
} }
}); });

Loading…
Cancel
Save