From 4bae54c0f9fb6c3b6eb34a0baf1c94fd753c23f5 Mon Sep 17 00:00:00 2001 From: Leander Date: Fri, 21 Apr 2017 10:03:46 +0200 Subject: [PATCH] T201704211003 --- allhighscores.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/allhighscores.php b/allhighscores.php index 0bc2e46..0ca3939 100644 --- a/allhighscores.php +++ b/allhighscores.php @@ -31,7 +31,8 @@ if($cid == -1) { LIMIT $2 OFFSET $3', array($cid, $limit, $offset))['data']; foreach($overview as $row) { $name = $row['name']; - $score = (isset($score) AND $score != NULL) ? ($row['score']) : -1; + $score = $row['score']; + //$score = (isset($score) AND $score != NULL) ? ($row['score']) : -1; $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);