From 7f31c5c1c39dc0a257b801734d7a9bffec0ea8a6 Mon Sep 17 00:00:00 2001 From: Leander Date: Wed, 26 Apr 2017 10:20:03 +0200 Subject: [PATCH] T201704261019 --- highscores.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/highscores.php b/highscores.php index 68f864a..84a874c 100644 --- a/highscores.php +++ b/highscores.php @@ -24,11 +24,10 @@ if($uid == '') { $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']; - print_r($categories); foreach($categories as $category) { $cid = $category['ID']; $cat = $category['name']; - $score = $db->query('SELECT COALSESCE("score", -1) as "score" + $score = $db->query('SELECT COALESCE("score", -1) as "score" FROM "Highscores" WHERE "Users_ID" = $1 AND "Categories_ID" = $2', array($uid, $cid))['data'][0]['score']; /*if($score == null) {