mirror of
https://github.com/retailcrm/Fetch.git
synced 2024-11-25 20:36:01 +03:00
Fix empty attachment name in some cases
This commit is contained in:
parent
3fbee968a6
commit
10954d66dd
@ -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']);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user