Skip to content

Commit 99f2bca

Browse files
Chartman123susnux
andauthored
Update lib/Service/SubmissionService.php
Co-authored-by: Ferdinand Thiessen <opensource@fthiessen.de> Signed-off-by: Christian Hartmann <chris-hartmann@gmx.de>
1 parent d371dbd commit 99f2bca

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/Service/SubmissionService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ private function exportData(array $header, array $data, string $fileFormat, ?Fil
390390
}
391391

392392
// Ignore whitespace-only files (e.g. S3 single-space placeholder).
393-
if ($content !== null && strlen(trim($content)) > 0) {
393+
if ($content !== null && trim($content) !== '') {
394394
$existentFile = $this->tempManager->getTemporaryFile($fileFormat);
395395
file_put_contents($existentFile, $content);
396396
$spreadsheet = IOFactory::load($existentFile);

0 commit comments

Comments
 (0)