Commit f4d7979b authored by Thomas Löffler's avatar Thomas Löffler

Adds only files to zip that are no directories

parent 03114969
Pipeline #2100 passed with stages
in 1 minute and 27 seconds
......@@ -65,7 +65,7 @@ class Archive
if (empty($path)) {
continue;
}
if (!$zipArchive->addFromString($path, (string)$content)) {
if (!empty($content) && !$zipArchive->addFromString($path, (string)$content)) {
throw new \Exception('Could not write file "' . $path . '" into ZIP file');
}
}
......
Markdown is supported
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