T201704210913
This commit is contained in:
@@ -31,7 +31,7 @@ if($cid == -1) {
|
|||||||
LIMIT $2 OFFSET $3', array($cid, $limit, $offset))['data'];
|
LIMIT $2 OFFSET $3', array($cid, $limit, $offset))['data'];
|
||||||
foreach($overview as $row) {
|
foreach($overview as $row) {
|
||||||
$name = $row['name'];
|
$name = $row['name'];
|
||||||
//$score = ($row['score'] == NULL) ? -1 : $row['score'];
|
$score = ($row['score']);
|
||||||
$place = $db->query('SELECT COUNT(*) FROM "Highscores" WHERE "score" > $1 AND "Categories_ID" = $2',
|
$place = $db->query('SELECT COUNT(*) FROM "Highscores" WHERE "score" > $1 AND "Categories_ID" = $2',
|
||||||
array($score, $cid))['data'][0]['count'] + 1;
|
array($score, $cid))['data'][0]['count'] + 1;
|
||||||
$data[] = array('place' => $place, 'name' => $name, 'score' => $score);
|
$data[] = array('place' => $place, 'name' => $name, 'score' => $score);
|
||||||
|
|||||||
Reference in New Issue
Block a user