From 93340c8174368799844b5e1adb792ba49ac2724a Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Thu, 8 Jul 2010 09:12:33 +0000 Subject: [PATCH] quitening warning for mb-strpos, when attachment->cid is not set --- felamimail/inc/class.bofelamimail.inc.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/felamimail/inc/class.bofelamimail.inc.php b/felamimail/inc/class.bofelamimail.inc.php index abff98dcff..6eb9f57991 100644 --- a/felamimail/inc/class.bofelamimail.inc.php +++ b/felamimail/inc/class.bofelamimail.inc.php @@ -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; }