Skip to content

Commit bdcebfb

Browse files
author
Jan Lysy
committed
part structure attribute disposition not set fix
1 parent cfd8f0e commit bdcebfb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PhpImap/Mailbox.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ protected function initMailPart(IncomingMail $mail, $partStructure, $partNum, $m
522522
$attachment = new IncomingMailAttachment();
523523
$attachment->id = $attachmentId;
524524
$attachment->name = $fileName;
525-
$attachment->disposition = $partStructure->disposition;
525+
$attachment->disposition = (isset($partStructure->disposition) ? $partStructure->disposition : null);
526526
if($this->attachmentsDir) {
527527
$replace = array(
528528
'/\s/' => '_',

0 commit comments

Comments
 (0)