mirror of
https://github.com/retailcrm/Fetch.git
synced 2024-11-22 03:06:02 +03:00
Merge pull request #9 from iyzoer/fixes-undefined-index
check date is null
This commit is contained in:
commit
8dcbff5d4c
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user