Skip to content

Node.js based forum software built for the modern web

Merge branch 'master' into v0.8.x

psychobunny25a419e45861
diff --cc src/controllers/users.js
index 6e2cfd566f,b3d60db5ec..a03f457913
--- a/src/controllers/users.js
+++ b/src/controllers/users.js
@@@ -174,8 -190,11 +190,11 @@@ usersController.getMap = function(req,
}
});
}, function(err, data) {
+ if (err) {
+ return next(err);
+ }
data.sort(function(a, b) {
- return b.total - a.total;
+ return b.users.length - a.users.length;
});
data.forEach(function(room) {