Fix bug where getstats only worked on the logged in user.

master
Skylar Ittner 8 years ago
parent 6d13916c23
commit b2b2cae813

@ -8,7 +8,7 @@ if (is_empty($VARS['user'])) {
sendError("Missing data.", true);
}
$stats = $database->select('players', ['level', 'energy', 'maxenergy', 'teamid', 'lastping'], ['uuid' => $_SESSION['uuid']])[0];
$stats = $database->select('players', ['level', 'energy', 'maxenergy', 'teamid', 'lastping'], ['nickname' => $VARS['user']])[0];
$out = [];