From 13c7fe2d7d66133d7dd736bc215954b2f5331d28 Mon Sep 17 00:00:00 2001 From: Viacheslav Sychov Date: Fri, 15 Aug 2014 16:56:20 +0300 Subject: [PATCH] fixed usage not-exists property --- 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 6a0b8c6..d7aeecc 100755 --- a/src/Fetch/Message.php +++ b/src/Fetch/Message.php @@ -239,7 +239,7 @@ class Message if (isset($headers->bcc)) $this->bcc = $this->processAddressObject($headers->bcc); - $this->from = $this->processAddressObject($headers->from); + $this->from = isset($headers->from) ? $this->processAddressObject($headers->from) : array(''); $this->replyTo = isset($headers->reply_to) ? $this->processAddressObject($headers->reply_to) : $this->from; /* Finally load the structure itself */