Skip to content

Commit

Permalink
Fatal Error fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Malte Goldenbaum committed Jan 27, 2017
1 parent 41df466 commit fcf923d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/IMAP/Message.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public function getHTMLBody($replaceImages = false)
$body = $this->bodies['html']->content;
if ($replaceImages) {
foreach ($this->attachments as $attachment) {
if ($attachment->id) {
if ($attachment->id && isset($attachment->img_src)){
$body = str_replace('cid:'.$attachment->id, $attachment->img_src, $body);
}
}
Expand Down

0 comments on commit fcf923d

Please sign in to comment.