Fix empty attachment name in some cases

This commit is contained in:
Sergey Linnik 2015-09-16 17:31:43 +03:00
parent 3fbee968a6
commit 10954d66dd

View File

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