T201704081317

This commit is contained in:
Leander
2017-04-06 13:17:20 +02:00
parent 9af8a4e0e7
commit 30e588d955

View File

@@ -74,7 +74,7 @@ if($uid == '') {
array($uid)
)['data'][0]['highscore'];
$new_user_high = $old_user_high == 0 ? $new_points : intval($old_user_high * 0.95 + $new_points * 0.05);
$db->query('UPDATE "Users" SET "highscore" = $1 WHERE "ID" = $1', array($uid));
$db->query('UPDATE "Users" SET "highscore" = $1 WHERE "ID" = $2', array($new_user_high, $uid));
}
}