From be90bb9971e1d350170469af54cdd0934b9504ec Mon Sep 17 00:00:00 2001 From: domibi Date: Sat, 31 May 2014 20:44:30 +0200 Subject: [PATCH] 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. --- src/Fetch/Message.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Fetch/Message.php b/src/Fetch/Message.php index cab27f8..06ffc7c 100644 --- a/src/Fetch/Message.php +++ b/src/Fetch/Message.php @@ -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;