From 9af8a4e0e740a0c1e8160e2866f8103465e6bd7d Mon Sep 17 00:00:00 2001 From: Leander Date: Thu, 6 Apr 2017 13:15:27 +0200 Subject: [PATCH] T201704081315 --- highscores.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/highscores.php b/highscores.php index ce1a119..176b469 100644 --- a/highscores.php +++ b/highscores.php @@ -20,7 +20,7 @@ if($uid == '') { } else { $score_all = $db->query('SELECT "highscore" FROM "Users" WHERE "ID" = $1', array($uid))['data'][0]['highscore']; $all = $db->query('SELECT COUNT (*) FROM "Users"')['data'][0]['count']; - $place_all = $db->query('SELECT COUNT (*) FROM "Users" WHERE "highscore" > $1', array($score))['data'][0]['count'] + 1; + $place_all = $db->query('SELECT COUNT (*) FROM "Users" WHERE "highscore" > $1', array($score_all))['data'][0]['count'] + 1; //get categories highscores $categories = $db->query('SELECT "ID", "name" from "Categories"')['data']; foreach($categories as $category) {