mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-11-10 17:13:38 +08:00
Bugfix PHP Warning: Undefined array key
This commit is contained in:
parent
759933e24b
commit
43622b50dc
1 changed files with 2 additions and 2 deletions
|
@ -71,7 +71,7 @@ trait Attachments
|
|||
$oZip->setArchiveComment('SnappyMail/'.APP_VERSION);
|
||||
foreach ($aData as $aItem) {
|
||||
$sFileName = ($mUIDs ? "{$aItem['uid']}/" : ($sFolder ? "{$aItem['uid']}-" : '')) . $aItem['fileName'];
|
||||
if ($aItem['data']) {
|
||||
if (isset($aItem['data'])) {
|
||||
if (!$oZip->addFromString($sFileName, $aItem['data'])) {
|
||||
$bError = true;
|
||||
}
|
||||
|
@ -164,7 +164,7 @@ trait Attachments
|
|||
} else if (!empty($aValues['folder']) && !empty($aValues['uid'])) {
|
||||
$sFolder = (string) $aValues['folder'];
|
||||
$iUid = (int) $aValues['uid'];
|
||||
$sMimeIndex = (string) $aValues['mimeIndex'];
|
||||
$sMimeIndex = (string) $aValues['mimeIndex'] ?: '';
|
||||
$oFileProvider = $this->FilesProvider();
|
||||
$mResult = $this->MailClient()->MessageMimeStream(
|
||||
function ($rResource, $sContentType, $sFileName, $sMimeIndex = '')
|
||||
|
|
Loading…
Reference in a new issue