mirror of
https://github.com/retailcrm/Fetch.git
synced 2024-11-21 18:56:02 +03:00
Check name and filename is empty
This commit is contained in:
parent
3fbee968a6
commit
6cb6658526
@ -508,7 +508,7 @@ class Message
|
||||
{
|
||||
$parameters = self::getParametersFromStructure($structure);
|
||||
|
||||
if ((isset($parameters['name']) || isset($parameters['filename']))
|
||||
if ((!empty($parameters['name']) || !empty($parameters['filename']))
|
||||
|| (isset($structure->subtype) && strtolower($structure->subtype) == 'rfc822')
|
||||
) {
|
||||
$attachment = new Attachment($this, $structure, $partIdentifier);
|
||||
|
Loading…
Reference in New Issue
Block a user