T201704081314

This commit is contained in:
Leander
2017-04-06 13:14:32 +02:00
parent 0203e1208c
commit f6b5e5f88a

View File

@@ -31,7 +31,7 @@ if($uid == '') {
$place = $db->query(
'SELECT COUNT (*) FROM "Highscores"
WHERE "Users_ID" = $1 AND "Categories_ID" = $2 AND "score" > $3',
array($uid, $cid, $score))['data'][0]['score'];
array($uid, $cid, $score))['data'][0]['count'] + 1;
$cat_scores[] = array('id' => $cid, 'name' => $cat, 'score' => $score, 'place' => $place);
}
$data = array('score' => $score_all, 'place' => $place_all, 'all' => $all, 'categories' => $cat_scores);