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

This commit is contained in:
Klaus Leithoff 2010-07-08 09:23:40 +00:00
parent 7de80b4322
commit 533f68a5ca

View File

@ -1058,7 +1058,7 @@
$attachments = $this->getMessageAttachments($_uid, $_part); $attachments = $this->getMessageAttachments($_uid, $_part);
foreach($attachments as $attachment) { foreach($attachments as $attachment) {
#error_log(print_r($attachment,true)); #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']; $partID = $attachment['partID'];
break; break;
} }