Merge branch 'patch-fix-empty-attachment-name'

This commit is contained in:
Sergey Linnik 2015-09-24 04:06:05 +03:00
commit e8c4ea7985

View File

@ -92,9 +92,9 @@ class Attachment
$parameters = Message::getParametersFromStructure($structure); $parameters = Message::getParametersFromStructure($structure);
if (isset($parameters['filename'])) { if (!empty($parameters['filename'])) {
$this->setFileName($parameters['filename']); $this->setFileName($parameters['filename']);
} elseif (isset($parameters['name'])) { } elseif (!empty($parameters['name'])) {
$this->setFileName($parameters['name']); $this->setFileName($parameters['name']);
} }