mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-08 00:47:04 +03:00
Merge pull request #749 from valeriangalliat/attachment-zip-php-5.6
Add `ZipArchive::CREATE` flag for PHP 5.6
This commit is contained in:
commit
c764d628f1
1 changed files with 1 additions and 1 deletions
|
|
@ -2855,7 +2855,7 @@ class Actions
|
||||||
if (!empty($sZipFileName))
|
if (!empty($sZipFileName))
|
||||||
{
|
{
|
||||||
$oZip = new \ZipArchive();
|
$oZip = new \ZipArchive();
|
||||||
$oZip->open($sZipFileName, \ZIPARCHIVE::OVERWRITE);
|
$oZip->open($sZipFileName, \ZIPARCHIVE::CREATE | \ZIPARCHIVE::OVERWRITE);
|
||||||
$oZip->setArchiveComment('RainLoop/'.APP_VERSION);
|
$oZip->setArchiveComment('RainLoop/'.APP_VERSION);
|
||||||
|
|
||||||
foreach ($aData as $aItem)
|
foreach ($aData as $aItem)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue