From 922751f8098665a5c4ed44205e26a65b02f8878e Mon Sep 17 00:00:00 2001 From: Leander Date: Fri, 21 Apr 2017 09:16:37 +0200 Subject: [PATCH] T201704210913 --- allhighscores.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/allhighscores.php b/allhighscores.php index 1625245..3d95ba5 100644 --- a/allhighscores.php +++ b/allhighscores.php @@ -31,7 +31,7 @@ if($cid == -1) { LIMIT $2 OFFSET $3', array($cid, $limit, $offset))['data']; foreach($overview as $row) { $name = $row['name']; - //$score = ($row['score'] == NULL) ? -1 : $row['score']; + $score = ($row['score']); $place = $db->query('SELECT COUNT(*) FROM "Highscores" WHERE "score" > $1 AND "Categories_ID" = $2', array($score, $cid))['data'][0]['count'] + 1; $data[] = array('place' => $place, 'name' => $name, 'score' => $score);