From 533f68a5cad0b86404cae99438a7bcc3373130b0 Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Thu, 8 Jul 2010 09:23:40 +0000 Subject: [PATCH] quitening warning for mb-strpos, when attachment->cid is not set --- felamimail/inc/class.bofelamimail.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/felamimail/inc/class.bofelamimail.inc.php b/felamimail/inc/class.bofelamimail.inc.php index 26cd72ba9a..3bb96becf5 100644 --- a/felamimail/inc/class.bofelamimail.inc.php +++ b/felamimail/inc/class.bofelamimail.inc.php @@ -1058,7 +1058,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; }