Skip to content

Commit 55d3c52

Browse files
Teams now have more than one category
1 parent 1f30500 commit 55d3c52

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

webapp/src/Entity/Team.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -782,8 +782,8 @@ public function isLocked(): bool
782782
return true;
783783
}
784784
}
785-
if ($this->getCategory()) {
786-
foreach ($this->getCategory()->getContests() as $contest) {
785+
foreach ($this->getCategories() as $category) {
786+
foreach ($category->getContests() as $contest) {
787787
if ($contest->isLocked()) {
788788
return true;
789789
}

0 commit comments

Comments
 (0)