quitening warning for mb-strpos, when attachment->cid is not set

This commit is contained in:
Klaus Leithoff 2010-07-08 09:23:04 +00:00
parent b211bae5b8
commit 19189042b7

View File

@ -1258,7 +1258,7 @@
$attachments = $this->getMessageAttachments($_uid, $_part);
foreach($attachments as $attachment) {
#error_log(print_r($attachment,true));
if(strpos($attachment['cid'], $_cid) !== false || strpos($cid, $attachment['cid']) !== false) {
if(isset($attachment['cid']) && (strpos($attachment['cid'], $_cid) !== false || strpos($_cid, $attachment['cid']) !== false)) {
$partID = $attachment['partID'];
break;
}