From 0874dc52bcf8ab90248cecfd2c273970d5ea83ff Mon Sep 17 00:00:00 2001 From: vymak Date: Wed, 18 Nov 2020 15:22:37 +0100 Subject: [PATCH 1/2] FIX argument. --- src/Imap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Imap.php b/src/Imap.php index 2449bb2..6949c8c 100644 --- a/src/Imap.php +++ b/src/Imap.php @@ -1093,7 +1093,7 @@ private function getEmailResponse($command, $parameters = array(), $first = fals //if there is email data if (!empty($email)) { //create the email format and add it to emails - $emails[$uniqueId] = $this->getEmailFormat($email, $uniqueId, $flags); + $emails[$uniqueId] = $this->getEmailFormat($email, $uniqueId, isset($flags) && is_array($flags) ? $flags : []); //if all we want is the first one if ($first) { From 33b4b2d27b543473ca9a46c11161e913f637a9d2 Mon Sep 17 00:00:00 2001 From: vymak Date: Wed, 18 Nov 2020 15:29:34 +0100 Subject: [PATCH 2/2] FIX argument. --- src/Imap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Imap.php b/src/Imap.php index 6949c8c..fdfa43a 100644 --- a/src/Imap.php +++ b/src/Imap.php @@ -1160,7 +1160,7 @@ private function getEmailResponse($command, $parameters = array(), $first = fals //if there is email data if (!empty($email)) { //create the email format and add it to emails - $emails[$uniqueId] = $this->getEmailFormat($email, $uniqueId, $flags); + $emails[$uniqueId] = $this->getEmailFormat($email, $uniqueId, isset($flags) && is_array($flags) ? $flags : []); //if all we want is the first one if ($first) {