Fix bug where getstats only worked on the logged in user.
This commit is contained in:
parent
6d13916c23
commit
b2b2cae813
@ -8,7 +8,7 @@ if (is_empty($VARS['user'])) {
|
|||||||
sendError("Missing data.", true);
|
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 = [];
|
$out = [];
|
||||||
|
Reference in New Issue
Block a user