Skip to content

Commit

Permalink
fixed "strtr(): Passing null to parameter Shardj#1 ($string) of type …
Browse files Browse the repository at this point in the history
…string is deprecated"
  • Loading branch information
tobias-trozowski committed Jun 21, 2022
1 parent e9e24e7 commit 7e87b21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/Zend/Mail.php
Original file line number Diff line number Diff line change
Expand Up @@ -685,7 +685,7 @@ public function setFrom($email, $name = null)
}

$email = $this->_filterEmail($email);
$name = $this->_filterName($name);
$name = $this->_filterName($name ?? '');
$this->_from = $email;
$this->_storeHeader('From', $this->_formatAddress($email, $name), true);

Expand Down

0 comments on commit 7e87b21

Please sign in to comment.