From e5ae30337586ce0b03c9243aa5b5ded8b2ba8f5a Mon Sep 17 00:00:00 2001 From: Leander Date: Thu, 20 Apr 2017 09:57:50 +0200 Subject: [PATCH] T201704200957 --- allhighscores.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'];