From e72c0a849eef95830af05d7cd1663a972f188990 Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Wed, 11 Sep 2019 12:27:50 +0000 Subject: [PATCH] mail : getDetails return attachmentDetails at empty if no attach is defined git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@5471 bf3deb0d-5f1a-0410-827f-c0cc1f45334c --- mail.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mail.php b/mail.php index 3dc82cf..5fd4b8c 100644 --- a/mail.php +++ b/mail.php @@ -1356,6 +1356,8 @@ class mail } unset ($sectionID); unset ($section); + $attachmentDetails = array (); + $attachmentInlineDetails = array (); for ($i = 0 ; $i < $attachmentNb ; $i ++) $attachmentDetails[$i] = $this->getAttachmentDetails($i); for ($i = 0 ; $i < $attachmentInlineNb ; $i ++)