From 5dc5d8fe57989fdef5e2a33f8ba3448058f53caa Mon Sep 17 00:00:00 2001 From: Muhammad Farhan Date: Mon, 7 Jun 2021 19:43:33 +0100 Subject: [PATCH] Update Email.php fix for undefined index cid error --- system/Email/Email.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/Email/Email.php b/system/Email/Email.php index 90d788959fa7..55a6a0c4e654 100644 --- a/system/Email/Email.php +++ b/system/Email/Email.php @@ -760,7 +760,7 @@ public function setAttachmentCID($filename) $this->attachments[$i]['cid'] = uniqid(basename($attachment['name'][0]) . '@', true); - return $attachment['cid']; + return $this->attachments[$i]['cid']; } }