Skip to content

Commit

Permalink
https://github.com/Webklex/php-imap/pull/372
Browse files Browse the repository at this point in the history
  • Loading branch information
gordonprimeeco committed Nov 20, 2023
1 parent 650118b commit 1d36379
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Message.php
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ protected function fetchAttachment(Part $part) {
$oAttachment = new Attachment($this, $part);

if ($oAttachment->getName() !== null && $oAttachment->getSize() > 0) {
if ($oAttachment->getId() !== null) {
if ($oAttachment->getId() !== null && $this->attachments->offsetExists($oAttachment->getId())) {
$this->attachments->put($oAttachment->getId(), $oAttachment);
} else {
$this->attachments->push($oAttachment);
Expand Down

0 comments on commit 1d36379

Please sign in to comment.