Check name and filename is empty

This commit is contained in:
Sergey Linnik 2015-08-25 23:38:12 +03:00
parent 3fbee968a6
commit 6cb6658526

View File

@ -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);