check date is null

This commit is contained in:
Akolzin Dmitry 2024-02-08 13:09:20 +03:00
parent bcaa835898
commit cd6af40196

View File

@ -253,7 +253,7 @@ class Message
$this->subject = MIME::decode($messageOverview->subject, self::$charset); $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); $this->date = strtotime($messageOverview->date);
} }