From f65772f2d506b496974a619fdb882fe6ec11e667 Mon Sep 17 00:00:00 2001 From: "Abdul.Mohsen B. A. A" Date: Sun, 30 Jun 2013 02:25:23 +0300 Subject: [PATCH] fixes Undefined property in message when using Message->getSubject() --- 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 a9d534a..326274f 100644 --- a/src/Fetch/Message.php +++ b/src/Fetch/Message.php @@ -367,7 +367,7 @@ class Message */ public function getSubject() { - return $this->subject; + return isset($this->subject) ? $this->subject : null; } /**