mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-06 07:57:02 +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
|
public function GetAsEmailCollection(string $sHeaderName, bool $bCharsetAutoDetect = false) : ?EmailCollection
|
||||||
{
|
{
|
||||||
$oResult = null;
|
return new EmailCollection(
|
||||||
$sValue = $this->ValueByName($sHeaderName, $bCharsetAutoDetect);
|
$this->ValueByName($sHeaderName, $bCharsetAutoDetect)
|
||||||
if (\strlen($sValue)) {
|
);
|
||||||
$oResult = new EmailCollection($sValue);
|
|
||||||
}
|
|
||||||
return $oResult;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function ParametersByName(string $sHeaderName) : ?ParameterCollection
|
public function ParametersByName(string $sHeaderName) : ?ParameterCollection
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue