Attempt to fix !s3fests command.
This commit is contained in:
parent
91dd716b3c
commit
e77c8e5a8f
1 changed files with 2 additions and 2 deletions
|
@ -40,11 +40,11 @@ class Splatoon3FestivalTeam implements ISplatoonFestivalTeam {
|
|||
}
|
||||
|
||||
public function hasResults(): bool {
|
||||
return array_key_exists('result', $this->teamInfo);
|
||||
return array_key_exists('result', $this->teamInfo) && is_array($this->teamInfo['result']);
|
||||
}
|
||||
|
||||
public function isWinner(): bool {
|
||||
return $this->teamInfo['result']['isWinner'];
|
||||
return $this->hasResults() && $this->teamInfo['result']['isWinner'];
|
||||
}
|
||||
|
||||
public function getResults(): array {
|
||||
|
|
Reference in a new issue