Skip to content

Commit

Permalink
Merge pull request ppy#10950 from nanaya/variable-unset
Browse files Browse the repository at this point in the history
Fix undefined variable
  • Loading branch information
peppy authored Feb 1, 2024
2 parents a9dc7ed + d4b37f8 commit 17c3233
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/Transformers/ScoreTransformer.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@ public function transformSolo(MultiplayerScoreLink|ScoreModel|SoloScore $score)

public function transformLegacy(LegacyMatch\Score|ScoreModel|SoloScore $score)
{
$best = null;

if ($score instanceof ScoreModel) {
// this `best` relation is also used by `current_user_attributes` include.
$best = $score->best;
Expand Down

0 comments on commit 17c3233

Please sign in to comment.