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

This commit is contained in:
Klaus Leithoff 2010-07-08 09:12:33 +00:00
parent 21e83f2928
commit 93340c8174

View File

@ -1155,8 +1155,9 @@
#error_log("getAttachmentByCID:$_uid, $_cid, $_part");
$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) {
//error_log(__METHOD__.'Attachment#'.print_r($attachment,true).'#');
//error_log(__METHOD__.'CID#'.print_r($_cid,true).'#');
if(isset($attachment['cid']) && (strpos($attachment['cid'], $_cid) !== false || strpos($_cid, $attachment['cid']) !== false)) {
$partID = $attachment['partID'];
break;
}