Skip to content

Commit

Permalink
Merge pull request ppy#11919 from nanaya/team-file-null
Browse files Browse the repository at this point in the history
Ignore null file parameter
  • Loading branch information
notbakaneko authored Feb 21, 2025
2 parents 91b0ed4 + aecdc46 commit 56f7c48
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions app/Models/Team.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,16 @@ public function setDefaultRulesetIdAttribute(?int $value): void

public function setFlagAttribute(?string $value): void
{
$this->flag()->set($value);
if ($value !== null) {
$this->flag()->set($value);
}
}

public function setHeaderAttribute(?string $value): void
{
$this->header()->set($value);
if ($value !== null) {
$this->header()->set($value);
}
}

public function setNameAttribute(?string $value): void
Expand Down

0 comments on commit 56f7c48

Please sign in to comment.