mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-27 19:19:21 +03:00
#950 always return EmailCollection
This commit is contained in:
parent
dbabbb9385
commit
477628ed70
1 changed files with 3 additions and 6 deletions
|
|
@ -76,12 +76,9 @@ class HeaderCollection extends \MailSo\Base\Collection
|
|||
|
||||
public function GetAsEmailCollection(string $sHeaderName, bool $bCharsetAutoDetect = false) : ?EmailCollection
|
||||
{
|
||||
$oResult = null;
|
||||
$sValue = $this->ValueByName($sHeaderName, $bCharsetAutoDetect);
|
||||
if (\strlen($sValue)) {
|
||||
$oResult = new EmailCollection($sValue);
|
||||
}
|
||||
return $oResult;
|
||||
return new EmailCollection(
|
||||
$this->ValueByName($sHeaderName, $bCharsetAutoDetect)
|
||||
);
|
||||
}
|
||||
|
||||
public function ParametersByName(string $sHeaderName) : ?ParameterCollection
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue