From c6404259e5612889507b2b36287f2602a60ef016 Mon Sep 17 00:00:00 2001 From: Cedric Kastner Date: Wed, 5 Sep 2018 10:22:38 +0200 Subject: [PATCH] fix: https://github.com/tedious/Fetch/pull/205/files --- src/Fetch/Attachment.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Fetch/Attachment.php b/src/Fetch/Attachment.php index e77984a..25042e2 100644 --- a/src/Fetch/Attachment.php +++ b/src/Fetch/Attachment.php @@ -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']); }