@@ -154,9 +154,9 @@ public function handleAction(Request $request, ?Profiler $profiler, int $errorId
154
154
$ internalError = $ this ->em ->createQueryBuilder ()
155
155
->from (InternalError::class, 'e ' )
156
156
->leftJoin ('e.affectedJudgings ' , 'j ' )
157
- ->join ('j.submission ' , 's ' )
158
- ->join ('j.contest ' , 'c ' )
159
- ->join ('s.team ' , 't ' )
157
+ ->leftJoin ('j.submission ' , 's ' )
158
+ ->leftJoin ('j.contest ' , 'c ' )
159
+ ->leftJoin ('s.team ' , 't ' )
160
160
->leftJoin ('s.rejudging ' , 'r ' )
161
161
->select ('e, j, s, c, t, r ' )
162
162
->where ('e.errorid = :id ' )
@@ -195,7 +195,7 @@ public function handleAction(Request $request, ?Profiler $profiler, int $errorId
195
195
sprintf ('internal error: %s ' , InternalErrorStatusType::STATUS_RESOLVED ));
196
196
197
197
$ affectedJudgings = $ internalError ->getAffectedJudgings ();
198
- if (!empty ( $ affectedJudgings )) {
198
+ if (!$ affectedJudgings-> isEmpty ( )) {
199
199
$ skipped = [];
200
200
$ rejudging = $ this ->rejudgingService ->createRejudging (
201
201
'Internal Error ' . $ internalError ->getErrorid () . ' resolved ' ,
@@ -220,6 +220,8 @@ public function handleAction(Request $request, ?Profiler $profiler, int $errorId
220
220
);
221
221
$ progressReporter (100 , '' , $ message );
222
222
}
223
+ } else {
224
+ $ progressReporter (100 , '' , 'No affected judgings. ' );
223
225
}
224
226
});
225
227
});
0 commit comments