From ce00940822b9211267840c1f540d19a7032b5fe5 Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Mon, 4 Apr 2022 16:33:11 +0200 Subject: [PATCH 1/2] fix notice "Notice: Undefined property: stdClass::$dparameters" --- src/Core/Message/Attachment.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Core/Message/Attachment.php b/src/Core/Message/Attachment.php index a6f0e76..f1d7916 100644 --- a/src/Core/Message/Attachment.php +++ b/src/Core/Message/Attachment.php @@ -226,7 +226,7 @@ class Attachment $this->attachment['ifdparameters'] = (isset($this->part->ifdparameters)) ? $this->part->ifdparameters : false; $this->attachment['ifparameters'] = (isset($this->part->ifparameters)) ? $this->part->ifparameters : false; - if (\is_array($this->part->dparameters)) { + if (isset($this->part->dparameters) && \is_array($this->part->dparameters)) { foreach ($this->part->dparameters as $obj) { if (\in_array(mb_strtolower($obj->attribute), ['filename', 'name'], true)) { $this->attachment[mb_strtolower($obj->attribute)] = pathinfo($obj->value, PATHINFO_FILENAME); @@ -235,7 +235,7 @@ class Attachment } } - if (\is_array($this->part->parameters)) { + if (isset($this->part->parameters) && \is_array($this->part->parameters)) { foreach ($this->part->parameters as $obj) { if (\in_array(mb_strtolower($obj->attribute), ['filename', 'name'], true)) { $this->attachment[mb_strtolower($obj->attribute)] = pathinfo($obj->value, PATHINFO_FILENAME); From aef063794963d9a98b93ecf9d91274d277fd7693 Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Mon, 4 Apr 2022 16:33:18 +0200 Subject: [PATCH 2/2] update composer --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index b724f10..02afdeb 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "clivern/imap", + "name": "deblan/clivern-imap", "type": "library", "description": "Access Mailbox Using PHP IMAP", "keywords": ["clivern", "imap"],