diff --git a/allhighscores.php b/allhighscores.php index 6de1714..33787ef 100644 --- a/allhighscores.php +++ b/allhighscores.php @@ -42,7 +42,7 @@ if($cid == -1) { print_r($all_users); foreach($all_users as $user) { print_r($db->query('SELECT EXISTS (SELECT * FROM "Highscores" WHERE "Users_ID" = $1 AND "Categories_ID" = $2)', - array($user['ID'])));//['data'][0]['exists']; + array($user['ID'], $cid))['data'][0]['exists']); if($db->query('SELECT exists FROM "Highscores" WHERE "Users_ID" = $1 AND "Categories_ID" = $2', array($user['ID']))['data'][0]['exists'] == 'f') { $name = $user['name'];