From 5f31fbf92921b20108ab08891cb47cccbb37f337 Mon Sep 17 00:00:00 2001 From: Leander Date: Mon, 10 Apr 2017 14:15:31 +0200 Subject: [PATCH] T201704101415 --- allhighscores.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/allhighscores.php b/allhighscores.php index 411392a..18d8a5e 100644 --- a/allhighscores.php +++ b/allhighscores.php @@ -14,7 +14,7 @@ $limit = isset($_GET['limit']) ? $_GET['limit'] : 10; $offset = isset($_GET['offset']) ? $_GET['offset'] : 0; $db = new Database(); -if($category == -1) { +if($cid == -1) { $overview = $db->query('SELECT "name", "highscore" FROM "Users" ORDER BY "highscore" DESC LIMIT $1 OFFSET $2', array($limit, $offset))['data']; foreach ($overview as $row) {