Fixed a regression introduced by [r3242] (warning when sending an email with an empty "To")

SVN:trunk[3265]
This commit is contained in:
Denis Flaven
2014-07-11 13:27:13 +00:00
parent 02ee41ef09
commit 880653f191
2 changed files with 7 additions and 4 deletions

View File

@@ -595,7 +595,7 @@ class Swift_Mime_SimpleMimeEntity implements Swift_Mime_MimeEntity
if ($this->_headers->has($field)) {
return $this->_headers->get($field)->getFieldBodyModel();
}
return false;
return null; // Returning null is equivalent to no return, but is easier to read!!
}
/**