Skip to content

Commit fcf923d

Browse files
author
Malte Goldenbaum
committed
Fatal Error fixed
1 parent 41df466 commit fcf923d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/IMAP/Message.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public function getHTMLBody($replaceImages = false)
108108
$body = $this->bodies['html']->content;
109109
if ($replaceImages) {
110110
foreach ($this->attachments as $attachment) {
111-
if ($attachment->id) {
111+
if ($attachment->id && isset($attachment->img_src)){
112112
$body = str_replace('cid:'.$attachment->id, $attachment->img_src, $body);
113113
}
114114
}

0 commit comments

Comments
 (0)