diff --git a/src/controllers/admin/users.js b/src/controllers/admin/users.js index 26edf7a00109..3acd0cd80866 100644 --- a/src/controllers/admin/users.js +++ b/src/controllers/admin/users.js @@ -64,7 +64,7 @@ async function getUsers(req, res) { } if (!set.length) { set.push('users:online'); - sortBy = 'online'; + sortBy = 'lastonline'; } return set.length > 1 ? set : set[0]; } diff --git a/src/views/admin/manage/users.tpl b/src/views/admin/manage/users.tpl index 0578299721fa..bf1511647314 100644 --- a/src/views/admin/manage/users.tpl +++ b/src/views/admin/manage/users.tpl @@ -98,7 +98,7 @@ [[admin/manage/users:users.reputation]] {{{if sort_reputation}}}{{{end}}} [[admin/manage/users:users.flags]] {{{if sort_flags}}}{{{end}}} [[admin/manage/users:users.joined]] {{{if sort_joindate}}}{{{end}}} - [[admin/manage/users:users.last-online]] {{{if sort_online}}}{{{end}}} + [[admin/manage/users:users.last-online]] {{{if sort_lastonline}}}{{{end}}}