forked from extern/egroupware
quitening warning for mb-strpos, when attachment->cid is not set
This commit is contained in:
parent
21e83f2928
commit
93340c8174
@ -1155,8 +1155,9 @@
|
|||||||
#error_log("getAttachmentByCID:$_uid, $_cid, $_part");
|
#error_log("getAttachmentByCID:$_uid, $_cid, $_part");
|
||||||
$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(__METHOD__.'Attachment#'.print_r($attachment,true).'#');
|
||||||
if(strpos($attachment['cid'], $_cid) !== false || strpos($_cid, $attachment['cid']) !== false) {
|
//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'];
|
$partID = $attachment['partID'];
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user