Prevent a warning when sending an email with no recipient in To:

SVN:trunk[3262]
This commit is contained in:
Denis Flaven
2014-07-10 12:49:39 +00:00
parent 7ca8c3e834
commit 38a2fd75c0
2 changed files with 6 additions and 0 deletions

View File

@@ -595,6 +595,7 @@ class Swift_Mime_SimpleMimeEntity implements Swift_Mime_MimeEntity
if ($this->_headers->has($field)) {
return $this->_headers->get($field)->getFieldBodyModel();
}
return false;
}
/**