summaryrefslogtreecommitdiff
path: root/lib/VNDB/DB/Users.pm
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2019-10-03 14:36:20 +0200
committerYorhel <git@yorhel.nl>2019-10-03 14:36:30 +0200
commitdbade31a5b581d7534bae94404ce5b120034bde9 (patch)
tree24537582e8e7b55866b8bcae56192f413c1a6b60 /lib/VNDB/DB/Users.pm
parent8795f8a55df40603e3e589b584cc5d4c66e78f3a (diff)
Fix 500 when sorting userlist by vote count
Broken in 8795f8a55df40603e3e589b584cc5d4c66e78f3a
Diffstat (limited to 'lib/VNDB/DB/Users.pm')
-rw-r--r--lib/VNDB/DB/Users.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VNDB/DB/Users.pm b/lib/VNDB/DB/Users.pm
index 40f3404e..9fa7c3ac 100644
--- a/lib/VNDB/DB/Users.pm
+++ b/lib/VNDB/DB/Users.pm
@@ -75,7 +75,7 @@ sub dbUserGet {
id => 'u.id %s',
username => 'u.username %s',
registered => 'u.registered %s',
- votes => 'up.value NULLS FIRST, u.c_votes %s',
+ votes => 'u.hide_list, u.c_votes %s',
changes => 'u.c_changes %s',
tags => 'u.c_tags %s',
}->{ $o{sort}||'username' }, $o{reverse} ? 'DESC' : 'ASC';