Browse Source

Fixed rank being index 0

pull/24/head
Teknikode 5 years ago
parent
commit
6d6374fdd3
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      api/api.php

+ 1
- 1
api/api.php View File

@@ -251,7 +251,7 @@ if (isset($_GET['component']))
foreach ($result_list as $result)
{
$id = $result['id'];
$rank = multi_array_search($rank_list, array('id' => $id))[0];
$rank = multi_array_search($rank_list, array('id' => $id))[0] + 1;
$username = $userTools->get($result['user_id'])->username;
$image_src = $result['url'];
$date_posted = $result['date_added'];

Loading…
Cancel
Save