Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions webapp/src/Service/DOMJudgeService.php
Original file line number Diff line number Diff line change
Expand Up @@ -419,18 +419,18 @@ public function getUpdates(): array
}
}

if ($this->checkrole('balloon')) {
if ($this->checkrole('balloon') && $contest) {
$balloonsQuery = $this->em->createQueryBuilder()
->select('b.balloonid', 't.name', 't.location', 'p.name AS pname')
->from(Balloon::class, 'b')
->leftJoin('b.submission', 's')
->leftJoin('s.problem', 'p')
->leftJoin('s.contest', 'co')
->leftJoin('p.contest_problems', 'cp', Join::WITH, 'co.cid = cp.contest AND p.probid = cp.problem')
->leftJoin('s.team', 't')
->andWhere('co.cid = :cid')
->andWhere('b.done = 0')
->setParameter('cid', $contest->getCid());
->select('b.balloonid', 't.name', 't.location', 'p.name AS pname')
->from(Balloon::class, 'b')
->leftJoin('b.submission', 's')
->leftJoin('s.problem', 'p')
->leftJoin('s.contest', 'co')
->leftJoin('p.contest_problems', 'cp', Join::WITH, 'co.cid = cp.contest AND p.probid = cp.problem')
->leftJoin('s.team', 't')
->andWhere('co.cid = :cid')
->andWhere('b.done = 0')
->setParameter('cid', $contest->getCid());

$freezetime = $contest->getFreezeTime();
if ($freezetime !== null && !(bool)$this->config->get('show_balloons_postfreeze')) {
Expand Down
Loading