Skip to content

Commit

Permalink
Fix undefined property: stdClass::$disposition
Browse files Browse the repository at this point in the history
close #190
  • Loading branch information
barbushin authored Aug 29, 2017
1 parent ec93450 commit 6130ddf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PhpImap/Mailbox.php
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,7 @@ protected function initMailPart(IncomingMail $mail, $partStructure, $partNum, $m
}
if(!empty($partStructure->parts)) {
foreach($partStructure->parts as $subPartNum => $subPartStructure) {
if($partStructure->type == 2 && $partStructure->subtype == 'RFC822' && $partStructure->disposition !== "attachment") {
if($partStructure->type == 2 && $partStructure->subtype == 'RFC822' && (!isset($partStructure->disposition) || $partStructure->disposition !== "attachment")) {
$this->initMailPart($mail, $subPartStructure, $partNum, $markAsSeen);
}
else {
Expand Down

0 comments on commit 6130ddf

Please sign in to comment.