Commit 4deafad3 authored by Tomas Norre Mikkelsen's avatar Tomas Norre Mikkelsen
Browse files

Merge branch '457-zipped-extension-misses-files-with-no-content' into 'develop'

Resolve "Zipped extension misses files with no content"

Closes #457

See merge request t3o/ter!526
parents e573c62e b5e2c061
Pipeline #9229 passed with stages
in 7 minutes and 57 seconds
......@@ -55,7 +55,7 @@ class ArchiveUtility
if (empty($path)) {
continue;
}
if (!empty($content) && !$zipArchive->addFromString($path, (string)$content)) {
if (!$zipArchive->addFromString($path, (string)$content)) {
throw new \Exception('Could not write file "' . $path . '" into ZIP file');
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment