mirror of
https://github.com/retailcrm/Fetch.git
synced 2025-02-06 10:39:21 +03:00
FIX: Message with no subject throw exception.
The subject of a message overview could not be set. Now we check if the property exists, if not we set subject to null.
This commit is contained in:
parent
7059e5159e
commit
be90bb9971
@ -201,7 +201,7 @@ class Message
|
||||
|
||||
return false;
|
||||
|
||||
$this->subject = $messageOverview->subject;
|
||||
$this->subject = isset($messageOverview->subject) ? $messageOverview->subject : null;
|
||||
$this->date = strtotime($messageOverview->date);
|
||||
$this->size = $messageOverview->size;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user