diff --git a/webapp/src/Controller/Jury/SubmissionController.php b/webapp/src/Controller/Jury/SubmissionController.php index 4b56ca30ec9..d229fe5082a 100644 --- a/webapp/src/Controller/Jury/SubmissionController.php +++ b/webapp/src/Controller/Jury/SubmissionController.php @@ -390,9 +390,10 @@ public function viewAction( $runResult['hostname'] = $firstJudgingRun->getJudgeTask()->getJudgehost()->getHostname(); $runResult['judgehostid'] = $firstJudgingRun->getJudgeTask()->getJudgehost()->getJudgehostid(); } - $runResult['is_output_run_truncated'] = $outputDisplayLimit >= 0 && preg_match( + $runResult['is_output_run_truncated'] = preg_match( '/\[output storage truncated after \d* B\]/', - (string)$runResult['output_run_last_bytes'] + $outputDisplayLimit >= 0 ? + (string)$runResult['output_run_last_bytes'] : (string)$runResult['output_run'] ); if ($firstJudgingRun) { $runResult['testcasedir'] = $firstJudgingRun->getTestcaseDir();