From b2b2cae8138e09e793cc50a6011edeaba4d2c99e Mon Sep 17 00:00:00 2001 From: Skylar Ittner Date: Tue, 1 Nov 2016 02:21:19 -0600 Subject: [PATCH] Fix bug where getstats only worked on the logged in user. --- getstats.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/getstats.php b/getstats.php index 534a751..7bc17b7 100644 --- a/getstats.php +++ b/getstats.php @@ -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 = [];