Fix 'hasExampleData'

This commit is contained in:
2023-12-03 16:49:46 +01:00
parent 929b87e513
commit 7ded60ce9c
2 changed files with 4 additions and 22 deletions

View File

@ -103,7 +103,10 @@ abstract class Solution
public function hasExampleData(): bool
{
return $this->exampleData['global'] !== [];
return
($this->exampleData['global'] !== null && $this->exampleData['global'] !== [])
|| ($this->exampleData['part1'] !== null && $this->exampleData['part1'] !== [])
|| ($this->exampleData['part2'] !== null && $this->exampleData['part2'] !== []);
}
/**