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:
domibi 2014-05-31 20:44:30 +02:00
parent 7059e5159e
commit be90bb9971

View File

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