Skip to content

Commit

Permalink
Fixed #4076
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonkelly committed Mar 29, 2019
1 parent 73e2f7e commit 61c9903
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG-v3.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
- Fixed a SQL error that could occur when using the Asset Indexes utility, if any filenames contained 4+ byte characters.
- Fixed a bug where entry queries could return duplicate results for any entries that belong to a section that has soft-deleted structures associated with it. ([#4066](https://github.com/craftcms/cms/issues/4066))
- Fixed a bug where rebuilding project config would not work with Matrix fields with no block types. ([#4074](https://github.com/craftcms/cms/issues/4074)
- Fixed an error that occurred when sending emails if the `testToEmailAddress` config setting was set. ([#4076](https://github.com/craftcms/cms/issues/4076))

## 3.1.20.1 - 2019-03-27

Expand Down
6 changes: 5 additions & 1 deletion src/mail/Message.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,15 @@ public function setBcc($bcc)
// =========================================================================

/**
* @param string|array|User|User[] $emails
* @param string|array|User|User[]|null $emails
* @return string|array
*/
private function _normalizeEmails($emails)
{
if (empty($emails)) {
return null;
}

if (!is_array($emails)) {
$emails = [$emails];
}
Expand Down

0 comments on commit 61c9903

Please sign in to comment.