mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 04:25:55 +01:00
dont crash if set is not defined, closes https://github.com/NodeBB/nodebb-plugin-leaderboard/issues/4
This commit is contained in:
@@ -102,6 +102,10 @@ usersController.getUsers = function(set, uid, page, callback) {
|
||||
'users:flags': {title: '[[pages:users/most-flags]]', crumb: '[[users:most_flags]]'},
|
||||
};
|
||||
|
||||
if (!setToData[set]) {
|
||||
setToData[set] = {title: '', crumb: ''};
|
||||
}
|
||||
|
||||
var breadcrumbs = [{text: setToData[set].crumb}];
|
||||
|
||||
if (set !== 'users:joindate') {
|
||||
|
||||
Reference in New Issue
Block a user