Skip to content

Commit

Permalink
fix user medals
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaomlove committed Aug 27, 2024
1 parent c7c8542 commit 729e5a2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion include/constants.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
defined('VERSION_NUMBER') || define('VERSION_NUMBER', '1.8.13');
defined('RELEASE_DATE') || define('RELEASE_DATE', '2024-08-09');
defined('RELEASE_DATE') || define('RELEASE_DATE', '2024-08-28');
defined('IN_TRACKER') || define('IN_TRACKER', false);
defined('PROJECTNAME') || define("PROJECTNAME","NexusPHP");
defined('NEXUSPHPURL') || define("NEXUSPHPURL","https://nexusphp.org");
Expand Down
7 changes: 2 additions & 5 deletions public/medal.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,9 @@
</thead>
TABLE;
$now = now();
$user = \App\Models\User::query()->findOrFail($CURUSER['id']);
$table .= '<tbody>';
$userMedals = \App\Models\UserMedal::query()->where('uid', $CURUSER['id'])
->orderBy('id', 'desc')
->get()
->keyBy('medal_id')
;
$userMedals = $user->valid_medals->keyBy('id');
foreach ($rows as $row) {
$buyDisabled = $giftDisabled = ' disabled';
$buyClass = $giftClass = '';
Expand Down

0 comments on commit 729e5a2

Please sign in to comment.