mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-15 04:24:41 +01:00
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");
|
||||
$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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user