Merge pull request #9 from iyzoer/fixes-undefined-index

check date is null
This commit is contained in:
Akolzin Dmitry 2024-02-08 13:11:18 +03:00 committed by GitHub
commit 8dcbff5d4c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);
}