Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
WolfyWin committed Dec 5, 2023
1 parent be4a069 commit 65f8abc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/main/evaluation/Manager/PdfManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,8 @@ private function generateCertificates(array $certificates): ?array
$tmpFile = $this->tempFileManager->generate();

if (1 === count($certificates)) {
$certificate = array_shift($certificates);
file_put_contents($tmpFile, $certificate);

$certificateNames = array_keys($certificates);
file_put_contents($tmpFile, $certificates[$certificateNames[0]]);

return [$certificateNames[0], $tmpFile];
}
Expand Down

0 comments on commit 65f8abc

Please sign in to comment.