From cd6af4019677cc6c6fcb0315196b93ce1eb7b7a5 Mon Sep 17 00:00:00 2001 From: Akolzin Dmitry Date: Thu, 8 Feb 2024 13:09:20 +0300 Subject: [PATCH] check date is null --- src/Fetch/Message.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Fetch/Message.php b/src/Fetch/Message.php index 8374646..f3a308c 100644 --- a/src/Fetch/Message.php +++ b/src/Fetch/Message.php @@ -253,7 +253,7 @@ class Message $this->subject = MIME::decode($messageOverview->subject, self::$charset); } - if (property_exists($messageOverview, 'date')) { + if (property_exists($messageOverview, 'date') && null !== $messageOverview->date) { $this->date = strtotime($messageOverview->date); }