Fix ACP set rank

This commit is contained in:
Calvin Montgomery 2013-06-24 23:42:11 -04:00
parent dc7eeed360
commit 0f40ac6243
1 changed files with 1 additions and 1 deletions

2
acp.js
View File

@ -93,7 +93,7 @@ module.exports = {
ActionLog.record(user.ip, user.name, "acp-set-rank", [data]);
var query = Database.createQuery(
"UPDATE registrations SET global_rank=? WHERE uname=?",
[data.name, data.rank]
[data.rank, data.name]
);
var res = db.querySync(query);