git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@3262 a333f486-631f-4898-b8df-5754b55c2be0
@@ -321,6 +321,11 @@ class EMail
public function GetRecipientTO($bAsString = false)
{
$aRes = $this->m_oMessage->getTo();
+ if ($aRes === false)
+ {
+ // There is no "To" header field
+ $aRes = array();
+ }
if ($bAsString)
$aStrings = array();
@@ -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;
/**