mirror of
https://github.com/retailcrm/Fetch.git
synced 2024-11-22 19:26:01 +03:00
Merge branch 'patch-fix-empty-attachment-name'
This commit is contained in:
commit
e8c4ea7985
@ -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']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user