Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Cedric Kastner committed Sep 5, 2018
1 parent ca68eb8 commit c640425
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Fetch/Attachment.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@ public function __construct(Message $message, $structure, $partIdentifier = null

$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']);
}

Expand Down

0 comments on commit c640425

Please sign in to comment.